Answer to Question #186059 in C++ for Shuvo

Question #186059

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
Expert's answer
2021-05-03T04:32:23-0400
1. Incorrect
2. Correct 
3. Incorrect
4. Incorrect
5. Incorrect

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS