Question:

What will be the resultant of the given below program?

#include<stdio.h>
#include<stdarg.h>

Void fun(char *msg, ...);
int main ()
{
   fun("IndiaMAX", 1, 4, 7, 11, 0);
   return 0;
}
   void fun(char *msg, ...)  
{
va_list ptr;{
   int num;
   va_start(ptr, msg);
   num = va_arg(ptr, int);    
   num = va_arg(ptr, int);
   printf("%d", num);
}

 

Answers:


Keywords:

© 2017 QuizBucket.org