Possible Duplicate:
what will be the output & why
#include<stdio.h>
int main()
{
int a=5,b=10;
printf("%d %d %d %d %d %d");
return 0;
}
output: 10 5 0 344 0 0
Possible Duplicate:
what will be the output & why
#include<stdio.h>
int main()
{
int a=5,b=10;
printf("%d %d %d %d %d %d");
return 0;
}
output: 10 5 0 344 0 0
It will depends of the compiler since the behavior in that case in undefined.
In your case I suppose that the values 10 and 5 where on the stack and that printf, assuming 6 arguments tried to get them and the values on top of the stack where retrieved.