CSE 305 Programming Languages Fall, 2003 Professor Shapiro Homework 6 Maximum Points: 8 Due 9:00 am, Tuesday, October 28, 2003 Copy this file to a text file named hw6.txt, edit into it your answers, and submit the file via the submit program by the deadline given above. 1. Some languages provide a convenient way to initialize arrays, such as the C-based languages, int[] squares = {0, 1, 2, 9, 16, 25}; However, is the {...} notation a general array-valued constructor, allowed on the rhs of assignment statements, or only a special syntax for declaration statements? What kinds of expressions are allowed inside the curly brackets? For each of the languages listed below, discuss how this array bracket notation may be used and what expressions are allowed within the brackets. For this question, you may use any resources, including publications, web pages, and other people (who are willing) (including classmates). However you MUST list all the resources you use, all the people you consult or work with, and use quotation marks appropriately. You may also write test programs to experiment with various compilers, in which case you are to include the programs you use, show their runs, and explain what you learn from each. The languages you are to discuss are: a. (4) Java b. (4) C or C++