List of 7 numbers in file f1
1 3 5 7 9 11 13
Input numbers for file f2
List of 9 numbers in file f2
2 4 6 8 10 12 14 16 18
List of 16 numbers in file f3
After simple merge sort:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 18
Example
8: In the following code
#include
main( )
{
FILE *fp;
fp = fopen(“trial”, “r”);
}
fp points to
(a) The first character in the file.
(b) A structure containing a char pointer which points to the first character in the file.
(c) The name of the file.
(d) None of the above.
Solution 8:
The correct choice is b.
Do'stlaringiz bilan baham: