Read the following declarations of variables & constants and determine which of them are syntactically, semantically and stylistically correct. Your answer should be either Correct or Incorrect.
1. int cat = ”Tazo”;
2. int toucans = toucans + 1; 3. hamsters = 5;
4. char ch = ’ab’;
5. bool done = ”false”;
1. Incorrect
2. Correct
3. Incorrect
4. Incorrect
5. Incorrect
Comments
Leave a comment