Q:

Unable to understand the correct output of my C program

My C code is :
void main()
{
int a=5,b=6,c=11;
clrscr();
printf("%d %d %d");
getch();
}

When i compiled it , it is giving Compile time error but the answer to this question is : 11 6 5
I'm unable to understand how the output is 11 6 5 
Please somebody tell the correct output with proper explanation .
Thanks

A:

Program's behavior is undefined. You well get anything.  
You are passing no arguments to the printf function while it is expecting three int type arguments. The statement 
 printf("%d %d %d",c, b, a);  

will give you desired output.  
11 6 5

