Sunday, 4 January 2015

Programming Quiz-51


main()
   {
   int (*functable[2])(char *format, ...) ={printf, scanf};
   int i = 100;

   (*functable[0])("%d", i);
   (*functable[1])("%d", i);
   (*functable[1])("%d", i);
   (*functable[0])("%d", &i);
}

   a. 100, Runtime error.
   b. 100, Random number, Random number, Random number.
   c. Compile error
   d. 100, Random number 


Answer: D

No comments:

Post a Comment