Question: 6. Assume a user runs a program containing the following code segment, and enters ' K ' at the prompt. What is the output? (
6. Assume a user runs a program containing the following code segment, and enters ' K ' at the prompt. What is the output? ( 3 marks) Const char kINDERGARTEN_CODE = ' k '; Char gradeLevel; Cout > gradelevel; If (gradeLevel = = KINDERGARTEN_CODE) cout "Kindergraten Student " endl; else cout "Older Student " endl
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
