C++ Type Checking Question:
Download Questions PDF

What is the output of this program?

#include <stdio.h>
int main()
{
char a = '12';

printf("%d", a);
return 0;
}
a) Compiler error
b) 12
c) 10
d) Empty

C++ Type Checking Interview Question
C++ Type Checking Interview Question

Answers:

Answer #1
c) 10

Answer #2
output is 50
but this ouput is not available in option.

Download C++ Type Checking Interview Questions And Answers PDF

Previous QuestionNext Question
How do we represent a wide character of the form wchar_t?
a) L'a'
b) l'a'
c) L[a]
d) la
Is the size of character literals different in C and C++?
a) Implementation defined
b) Can't say
c) Yes, they are different
d) No, they are not different