Single Choice Not Set

QWhat is the output of this C code?

#include <stdio.h>
 void main()
    {
        char a = 'a';
        int x = (a % 10)++;
        printf("%d\n", x);
    }

ID: #1190 Operators and Enums in C Language 939 views
Question Info
#1190Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 6
  • B Junk value
  • C Compile time error
  • D 7
Correct Answer

Explanation

Option C

Share This Question

Challenge a friend or share with your study group.