adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
int main(){
    char num = '10';
 printf("%d", num);
 return 0;
}

a.

49

b.

48

c.

10

d.

8

Posted under C Programming

Answer: (b).48

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?