#include<stdio.h>
int main()
{
int i=10,j=30;
printf("%d %d",i,j); // this line printing value of i and j...works fine
printf("%d %d"); // this line again printing value of i and j
printf("%d"); // this line printing value of i
return 0;
}
On gcc compiler, 2nd and third printf() call taking value of i and j automatically..
but if in first printf() call ,i don't give i and j as argument then that prints garbage value..
can nyone explain it plz..
one more thing...
if i use scanf("%2d %4f",&g,&f); then what will happen...i normally don't use numeric number with %d..
so plz explain both questions.