How does printf() work without variable list in its argument? -
the following code:
#include<stdio.h> void main() { int i=100,j=200; printf("%d.....%d"); }
gives 200.....100 output. explain how printf works without datalist
it provides warning @ compile time (warning: few arguments format), and not documented, therefore it's undefined behaviour , should not used. different compilers have different behaviours , behaviour may change between versions of same compiler.
try reading on wikipedia more info.
Comments
Post a Comment