The reason some of those functions work with numbers and some with names is because stdout, stdin, and stderr are macros for the FILE* type that printf() and friends take. dup2 expects a straight ...
ਕੁਝ ਨਤੀਜੇ ਲੁਕੇ ਹੋਏ ਹਨ ਕਿਉਂਕਿ ਉਹ ਤੁਹਾਡੇ ਲਈ ਗੈਰ-ਪਹੁੰਚਣਯੋਗ ਹੋ ਸਕਦੇ ਹਨ।
ਪਹੁੰਚ ਤੋਂ ਬਾਹਰ ਪਰਿਣਾਮ ਦਿਖਾਓ