Vidyalelo
C++ Programming · Q27

Structures and Unions in C++

Programming · C++ Programming · question 27

Q27

What will be the output of the following C++ code? #include using namespace std; struct sec int a; char b; ; int main() struct sec s =25,50; struct sec *ps =(struct sec *)&s; cout a b; return 0;

A.
252
Answer
B.
253
C.
254
D.
262

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board