C - Files and Preprocessors Questions and Answers
Practice ModeShowing 10 of 96 questions
Q71
What type of call is a system () call ?
Answer: Option C
Q72
Which ANSI C standard function could be used to sort a string array ?
Answer: Option A
Q73
Which is the fundamental data type used to implement the enum data type ?
Answer: Option B
Q74
Which of the following function does not take variable number of arguments ?
Answer: Option A
Q75
Undefined function calls in a C program ar edetected
Answer: Option C
Q76
void test it (struct cust_rec *sptr, char* s)
{ ... }
Referring to the sample code above, if a calling function has a char array variable string of length 10 and a cust_rec structure variable record, what would be the correct call to testit?
Answer: Option B
Q77
What is the output generated by the following code ?
# define square (a) (a*a)
printf("%d", squaare(4+5));
Answer: Option C
Q78
What is the output generated by the above code ?
Answer: Option C
Q79
Given the statement x = fopen (b,c);
What is b?
Answer: Option C
Q80
What would be the output if the following program (nyprog.c) is run using the following command line ?
nyprog jan feb mar apr
main (int size, char *arg[ ] )
{
while (size) printf ("%s ", arg [--size]);
}
Answer: Option B