Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 70

  Shared By: Adah Miller    Date: Jan 24    Category: C Programming    Views: 79

Answer:

#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

Share: 
 

Didn't find what you were looking for? Find more on C programming practical question 70 Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: