Discussion :: C-MCQs
-
What is the output of this C code?
int main()
{
const int a;
a = 32;
printf("a is %d", a);
return 0;
}
Answer : Option B
Explanation :
Since the constant variable has to be declared and defined at the same time, not doing it results in an error.
Be The First To Comment