Monday 18 March 2013

const int i=4; float j; j = ++i;


    #include<stdio.h>
main()
 {
   const int i=4;
   float j;
   j = ++i;
   printf("%d  %f", i,++j);
 }
Answer:
Compiler error
    Explanation:
i is a constant. you cannot change the value of constant 



Blog Author: Vijay Kumar

Go to: Java Aptitude

No comments:

Post a Comment