QUIZ 39

What is the output?

main()
{
char a=’8′,b=’9′,c;
c=a+b;
printf(“%d”,c);
}

a. 89
b. 17
c. 113
d. None

Answer : (c)

ASCII value of 8 =56 and 9= 57
Thus, stores sum of their ASCII values i.e. 56+57=113 (q)

Leave a Reply

Your email address will not be published. Required fields are marked *