SHARE
TWEET

C ques 37

Dprogrammed1 Apr 5th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. #include<stdarg.h>
  3. void fun(char *msg, ...);
  4.  
  5. int main()
  6. {
  7.     fun("Code", 1, 4, 7, 11, 0);
  8.     return 0;
  9. }
  10. void fun(char *msg, ...)
  11. {
  12.     va_list ptr;
  13.     int num;
  14.     va_start(ptr, msg);
  15.     num = va_arg(ptr, int);
  16.     num = va_arg(ptr, int);
  17.     printf("%d", num);
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top