C - Files and Preprocessors

C - Files and Preprocessors
71. What type of call is a system () call ?
  • A user-defined procedure, not a function call
  • A system inline function call
  • A standard library call
  • An application library call
Show Answer
72. Which ANSI C standard function could be used to sort a string array ?
  • qsort
  • sort
  • asort
  • bsort
Show Answer
73. Which is the fundamental data type used to implement the enum data type ?
  • char
  • int
  • float
  • double
Show Answer
74. Which of the following function does not take variable number of arguments ?
  • main ()
  • printf ()
  • scanf()
  • sprintf()
Show Answer
75. Undefined function calls in a C program ar edetected
  • by the preprocessor
  • by the assembler
  • by the linker
  • by he operating system
Show Answer
76. 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?
  • testit (&record, * string);
  • testit (&record, string);
  • testit (&record, &string);
  • testit (record, *string);
Show Answer
77. What is the output generated by the following code ?
# define square (a) (a*a)
printf("%d", squaare(4+5));
  • 81
  • 4
  • 29
  • none of the above
Show Answer
78. What is the output generated by the above code ?
  • 3 2
  • 3 1
  • 2 1
  • 2 2
Show Answer
79. Given the statement x =  fopen (b,c);
What is b?
  • pointer to a character array which contains the filename
  • filename within double quotes
  • option a or b
  • none
Show Answer
80. 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]);
}
  • myprog jan feb mar apr
  • apr mar feb jan myprog
  • jan feb mar apr
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test