TOPUPchat logo...
Forgot password?

Select : C language | Java

Q.15] unpredicated behaviour of character array in c

void main()
{
    char a[10]="1234\056890";
    printf("%s",a);
    getch();
}
    

Options]

A)1234
B)12345\0567890
C)1234.8
D) 1234.890
E) variable a overflow error        

Click to See Answer
C)1234.8    

Next | use of simple enum with soem output formating

Previous | ternary

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