-
What will be the output of the following C code?
#include <stdio.h>
#define num 12
int main()
{
const int num = 10;
printf("num = %d\n", num);
}
-
- num
- num = 12
- num = 10
- Compilation Error
- None of these
Correct Option: D
The #define substitutes a with 12 without leaving any identifier, which results in Compilation error.