#Meta-Wlp: #Macro: TITLE wlp: Learn C (II) p.2a #Eval: $TITLE$ #Macro: PAGE bb2-2a

It will not compile.

The semicolon after the first +1 is wrong. The effect of this semicolon is to change the expression,
  two = (one=1)+1 
into the statement,
  two = (one=1)+1 ;
and statements cannot go inside of other statements.
Will this program work:
#include<stdio.h>

int main(){
  int one, two, four ;

  one = 1 ;
  four = ( two = ( one + one ) ) + two ;

  printf("It's as easy as %d, %d, %d!\n", one, two, four ) ;
}
#Shuffle: none $PAGE$-A $PAGE$-B Return to Learn C Introduction #: Yes. #: No. #: