C Language Exercises – Day 11

C Language Exercises - Day 11

01 The ASCII value of the digit character ‘0’ is 48. Given the following program: main() { char a=’1′,b=’2′; printf(“%c,”,b++); printf(“%d\n”,b-a); } The output of the program is: A) 3,2 B) 25,2 C) 2,2 D) 2,25 Answer: C Explanation: printf(“%c, b++): The initial value of b is ‘2’ (ASCII value 50); b++ is a post-increment, … Read more