D Assume you do not know the ASCII code of the dollar sign $, write a C++ statement that allow you to see its the ASCII
Posted: Fri Jul 01, 2022 5:41 am
statement that allow you to see its the ASCII code on the output screen. cout << static_cast<int>('$') << endl; O cout << static_cast<char>('$') << endl; O int a-$; cout<<a<<endl; cout<<'$'<<endl; Question 4 Assume you do not know the ASCII code of the blank space, write a C++ statement that allow you to see its the ASCII code on the output screen. cout<<(int)' '<<endl; cout<<' '<<endl; O char a=''; cout<<a<<endl; 1 pts cout<<static_cast<int>()<<endl;
What will following statements display on the screen? int a = 'B'; cout << a << endl; O 66 OB O a 66 or 98
What will following statements display on the screen? char a = 85; cout << a << endl; OU O 85 a Ou
Given a C++ statement: int k = 'a' + '5'; What is the value of k? O 150 102 a+5 70 Question 8 Given a C++ statement: int k = 'a' + 5; What is the value of k? 102 150 05 1 pts O 70
What will following statements display on the screen? char k = 'B' +6; cout << k << endl; ΟΗ O 72 O 71 Question 10 What will following statement display on the screen? cout << static_cast<char>(34) << endl; O 1 pts 34
D Assume you do not know the ASCII code of the dollar sign $, write a C++ What will following statements display on the screen? int a = 'B'; cout << a << endl; O 66 OB O a 66 or 98
What will following statements display on the screen? char a = 85; cout << a << endl; OU O 85 a Ou
Given a C++ statement: int k = 'a' + '5'; What is the value of k? O 150 102 a+5 70 Question 8 Given a C++ statement: int k = 'a' + 5; What is the value of k? 102 150 05 1 pts O 70
What will following statements display on the screen? char k = 'B' +6; cout << k << endl; ΟΗ O 72 O 71 Question 10 What will following statement display on the screen? cout << static_cast<char>(34) << endl; O 1 pts 34