Hi guys, please help me. i dont know how to do these two questions. In need to get it done .Appreciate if you all could help me and explain it to me( if possible)
1)Assuming flags = 0xAA, what is the value of flags after the following statement is executed? cout << (flags << 2);
Answer: a)0xA8
b)0x54
c)0xAA
d)AA2
2)Which of the following statements will display "Problem!" if bit 2 of flags is a '0'?
The answer to the question is available in the PDF file https://assignmentexpert.com/https://assignmentexpert.com/homework-answers/programming-answer-45131.pdf
Comments
Leave a comment