1. Consider the following sequence of C/C++ statements, which are syntactically valid but have no reasonable semantic interpretation (assuming i and j have been declared as int variables): See image.

How are these situations handled when executed by your C/C++ system?

2. Consider the expression x + y/2 in the language C. How many different meanings does this expression have, depending on the types of x and y?

3. For your Java compiler/interpreter, verify whether or not the cast of the integer 65537 to a char results in an error.

4. Suggest a general strategy by which the various languages (Fortran, C, Ada, and Java) formatted I/0 conventions could become more unified. That is, can you design a generalized format expression to which a format expression in each of these languages could be mapped in a meaning preserving way? What are the difficult challenges for creating such a mapping?

5. Answer the above question again, but for unformatted I/O.

Academic Honesty!
It is not our intention to break the school's academic policy. Projects posted are only used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.