TOPUPchat logo...
Forgot password?

Select : C language | Java

Q.7] not specifying variables in printf as argument and no argument in printf

void main()
{
    int x=10,y=13;
    printf(“%d %d”,x);
    printf();
    printf(“%d %d”,y);

}
    

Options]

A) 10 13 10 10
B) Garbage Garbage 10 Garbage
C) Compile time error
D) depends on compiler        

Click to See Answer
C) Compile time error    

Next | For given compiler sizeof(int)=4 (like “dev c++” compiler)

Previous | using or calling printf inside of printf as argument

Hemen Ashodia [paper setter]
Register & recharge
Male Female
I agree Terms and Conditions