exam snippet, wont be able to use compiler so can someone explain this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xerxes
    New Member
    • Apr 2021
    • 1

    exam snippet, wont be able to use compiler so can someone explain this?

    #include <stdio.h>

    int main()
    {
    int x=3, i=0;
    do{
    x=x++;
    i++;
    }while(i!=3);

    printf("%d",x);

    return 0;
    }
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 655

    #2
    exam snippet, wont be able to use compiler so can someone explain this?
    Explain what?   ⠀⠀   

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      What a curious exam question. No matter what answer you give, nobody can say you're wrong, but nobody can say you're right either.

      Comment

      Working...