Why is the use of camel case preferred in C++ programs when declaring variables and named constants that are composed of two or more words? In addition to your explanation, give an example of where camel case is preferred.
What will be an ideal response?
Since names in C++ are case sensitive, it is important to utilize a naming convention that is readable, functional, and consistent when a name is composed of two or more words; camel case meets these requirements.
Example: If declaring a variable to hold the age of a person, you could use the following: ageofperson; however, this may not be very readable. By using camel case, it would read as follows: ageOfPerson. While both are acceptable, the use of camel case makes the name much more readable.
You might also like to view...
With ________ software development, individuals and companies contribute their efforts in developing, maintaining and evolving software in exchange for the right to use that software for their own purposes, typically at no charge.
a. object-oriented b. high-level c. open-source d. proprietary
What is the purpose of the new operator?
What will be an ideal response?
To run another procedure or function from within a procedure by transferring to the called routine, use the ________
A) Me keyword B) Call statement C) With statement D) Option Explicit statement
________ affects the background color within a cell, group of cells, or a table
Fill in the blank(s) with correct word