The following program
main()
{
close(1);
print("How R U?");
}
A. | is syntactically incorrect |
B. | results in a run-time error |
C. | will wait indefinitely, if executed |
D. | none of the above |
Answer : D Explanation : The close statement closes the file, whose Tile descriptor is 1, i.e., stdout. So, print f will fail. So. the program immediately terminates. |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |