Sep 5, 2013 at 3:19pm UTC
Line 7 says that number is a function which takes no parameters and returns an int. Line 8 tries to assign to that function. Remove the parentheses on line 7.
Sep 5, 2013 at 3:21pm UTC
I did that, but instead of getting 9, the number that came out was 4072544. Where did this number come from?
Edit: whoops meant 9 not 7
Last edited on Sep 5, 2013 at 3:25pm UTC
Sep 5, 2013 at 3:22pm UTC
You can combine it to one line like...
int number = 9;
Also line 13 will never happen because of line 12. Return should always be the last line because it is like the exit command.
Last edited on Sep 5, 2013 at 3:24pm UTC
Sep 5, 2013 at 3:24pm UTC
Line 9 is incorrect. It should be: printf("%d\n" , number);