Multiple choice technology programming languages

Which is not valid in C?

  1. class aClass{public:int x;};

  2. /* A comment */

  3. char x=12;

  4. None of the Above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

C does not support classes or the 'class' keyword - these are C++ OOP features. Options B and C are valid C syntax (comments and char initialization). Option A uses C++ class syntax which is invalid in C.