1. Point out the error in the following program. #include<stdio.h> #include<stdarg.h> fun(...); int main() { fun(3, 7, -11.2, 0.66); return 0; } fun(...) { va_list ptr; int num; va_start(ptr, n); num = va_arg(ptr, int); printf("%d", num); }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.03 pm
There is no fixed argument in the definition fun()