C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
64 / 90
What will be the output of the below 'C' program.
int main()
{
int i = 20;
printf ("%x", i);
return 0;
}
int main()
{
int i = 20;
printf ("%x", i);
return 0;
}
A14
B20
C0
D1
Answer: Option (Login/Signup)
Show Explanation
Hence, the correct option is A.
Asked In ::
STEP-BY-STEP
The format specifier %x is used for displaying the number 20 in hexadecimal format. The corresponding hexadecimal value of 20 is 14.
Hence, the correct option is A.
Read Full Answer
Report Error
Please Login First Click Here