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

Conversion from Decimal to other Number Systems

 ==>To convert a decimal number to any other number system (binary, octal or hexadecimal), use the steps given below. Step 1: Divide the ...