61 What will be the output of following code :
// Assume all header files are included
#include<stdio.h>
main()
{
const int i=4;
float j;
j = ++i;
printf("%d %f", i,++j);
}
A. 89
B. y
C. compile time error
D. Runtime Error
View Answer & Explanation
Ans. d
Explanation : i is a constant. you cannot change the value of constant
62. What will be the output of following code :
// Assume all header files are included
#include<stdio.h>
main()
{
const int i=4;
float j;
j = ++i;
printf("%d %f", i,++j);
}
A. 89
B. y
C. compile time error
D. Runtime Error
View Answer & Explanation
Ans. d
Explanation : i is a constant. you cannot change the value of constant
