Translate the following C programs into your programming language. (Note: the first 10 of these programs are just short programs to see if your compiler is doing type checking for function calls and return statements correctly. They should result in syntax errors.) You should compile and run the C program and check if it produces the same answers as code generated by your compiler.
Note: the assumption is that your compiler handled the test programs from Project 5 correctly. Thus, none of these test programs check that local variables are handled correctly. If your Project 5 did not handle local variables, please make sure that you submit the test programs from Project 5 as well.
to Fall 2009 CMSC 431 Homepage