What's wrong with the follwing code? How can we make the function print() to work as printf?
#include <stdio.h> #include<stdarg.h> void print(char *format,...) { va_list args; va_start(args,format); printf(format,args); } int main() { print("%d %s",5,"le"); }