In C++:
If the keyboard input is: A B D, what is the output for the following program and why?
(ASCII value of 'A' = decimal 65 = hexa 41, 'a'= decimal 97 = hexa 61
First make a guess what ouput will result . Run and compare.
#include main(){char x, y, z;cin >> x >> y >> z;cout < x=""><>cout < (int)="" y=""><>cout < (int)="" z=""><>}
main()
{
char x, y, z;
cin >> x >> y >> z;
cout < x=""><>
cout < (int)="" y=""><>
cout < (int)="" z=""><>
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here