Multiple choice technology programming languages

#define T t void main() { char T=’T’; printf(“\n%c\t%c\n”,T,t); }

  1. t t

  2. t T

  3. T t

  4. T T

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

The #define T t directive replaces all occurrences of T with t. So char T='T' becomes char t='T', declaring a variable t with value 'T'. Both arguments in printf resolve to the same variable t after macro expansion, printing 'T T'.