True or false for C++
1.int n = 11/5; will allocate memory for n and initialize with the value 2.
2.Array indices begin with the number 1.
3.You can define multiple functions with the same identifier
4.Variables declared local to a function are still accessible after the function completes execution
5.structs by default have private access specification.
1. int n = 11/5; will allocate memory for n and initialize with the value 2. Answer: True 2. Array indices begin with the number 0. Answer: False 3. You can define multiple functions with the same identifier with different parameters and return type. It is called function overloading. Answer: True 4. Variables declared local to a function are cannot accessible after the function completes execution Answer: False 5. structs by default have public access specification. Answer: False
Get Answers For Free
Most questions answered within 1 hours.