Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 132

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

Answer:

main()
{
int i = 3;
for (;i++=0;) printf(“%d”,i);
}


Answer:
Compiler Error: Lvalue required.


Explanation:
As we know that increment operators return rvalues and hence it cannot appear on the left hand side of an assignment operation.

Share: 
 

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


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


Tagged: