MCQs>IT & Programming>C++>What is the output of the following code? #include using namespace std; struct val { int a; char b; }; int main(int argc, const char * argv[]) { struct val s ={19,49}; struct val *ps =(struct val *)&s; cout << ps->a << ps->b; return 0; }
C++ MCQs
What is the output of the following code? #include using namespace std; struct val { int a; char b; }; int main(int argc, const char * argv[]) { struct val s ={19,49}; struct val *ps =(struct val *)&s; cout << ps->a << ps->b; return 0; }
Answer
Correct Answer: 191
Explanation:
Note: This Question is unanswered, help us to find answer for this one