Multiple Choice Questions in C

 

1.What would be the output of the following C program?


void main()

{

printf("Hai");

printf("hru");

getch();

}


A)Hai HRU

B)Haihru 

C)hai 

HRU

D)HAIHRU


Answer:



2.What would be the output of the following C program?


void main()

{

int s=528,r=65;

printf("%d%c",s,r);

getch();

}

A)528 a

B)a 528

C)528A

D)A528


Answer:


2 comments:

Thank you Very Much.For Given Comment

Validate Aadhaar

  Aadhaar Website link: https://myaadhaar.uidai.gov.in/ Validate Aadhaar: To know which Mobile(XXXXX XX123) Number is linked to your Aadhaar...