Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdarg.h>
- void myPrinter(const char *fmt,...);
- int main(void) {
- myPrinter("dcf",5, 'h',5.5);
- }
- void myPrinter(const char *fmt,...) {
- int a=5;
- char b;
- b= 'h';
- double c=5.5;
- va_list list;
- va_start(list,fmt);
- printf(fmt,list);
- printf("%d\n%c\n%lf\n",a,b, c);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement