
Suppose that alpha is an int variable and ch is a char variable and the input is: 17 A
What are the values after the following statements execute?
Cin >> alpha;
Cin >> ch;
A) alpha = 17, ch = ' '
B) alpha = 1, ch = 7
C) alpha = 17, ch = 'A'
D) alpha = 17, ch = 'a'
Correct Answer:
Verified
Q2: You can use the function getline to
Q3: The following statements will result in input
Q4: Suppose that ch1,ch2,and ch3 are variables of
Q4: Suppose that x and y are int
Q5: Suppose that x is an int variable,y
Q5: Suppose that x and y are int
Q7: Suppose that x is an int variable,y
Q9: Suppose that x is an int variable
Q16: In an output statement, each occurrence of
Q20: Entering a char value into an int
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents