There are no syntax errors in this section.
int a = 1, b = 2 ; printf("a = %d, b = %d\n", a, b) ; a += b ; printf("a = %d, b = %d\n", a, b) ; a = b++ ; printf("a = %d, b = %d\n", a, b) ;Click here for a sample answer.
int a, b ; a = 6 ; b = 9 ; if ( a * b == 42 ) { printf("Hitchhiker's Guide\n") ; } else if ( a - b < -3 ) { printf("Milliway's\n") ; } else { printf("Life, the Universe and Everything\n") ; }Click here for a sample answer.
int n, i ; i = 0 ; n = 2048 ; while (n > 0) { n = n / 2 ; printf("n = %d\n", n) ; i++ ; } printf ("i = %d, n = %d\n", i, n) ;Click here for a sample answer.