Question
Whats is the output of this C code?
void main()
{
int const k = 11;
k++;
printf("k is %d", k);
}
void main()
{
int const k = 11;
k++;
printf("k is %d", k);
}
Answer: Option D
Was this answer helpful ?
Constant variable has to be declared and defined at the same time. Trying to change it later results in error.
Was this answer helpful ?
Submit Solution