Question 15
Answer saved
Marked out of 1.00
Comment on the output of this C code?
1 #include<stdio.h>
2 #include<string.h>
3 #include<conio.h>
4 int main()
5{
6
7
8
int const k=5;
k++;
printf("k is %d",k);
9
return 0;
10 }
a. Error, because a constant variable cannot be changed
b. k is 6
Oc. Error, because a constant variable can be changed only twice
Od. Error due to const succeeding int
Clear my choice