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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -