Create a list of six legal variable names — three good and three bad choices. Explain why each name falls into the good or bad category.
What’s displayed by each line in the following code snippet? Explain each result.
1
2
3
cout << "Seven divided by three is " << 7 / 3 << endl;
cout << "Seven divided by three is " << 7.0 / 3 << endl;
cout << "Seven divided by three is " << 7.0 / 3.0 << endl;