CBSE BOARD XII, asked by shaiknagurbabu18, 1 month ago

What is the output of this program?
#include <iostream>
using namespace std;
struct sec {
int a
char b:
};
int main()
{
struct sec s = {25,50},
struct sec *ps =(struct sec *)&s,
cout <<ps->a << ps->b,
return 0;
}​

Answers

Answered by shreyadubey15804
0

Answer:

Answer : Option A

Explanation :

We copied the value of shoe1 into shoe2 and divide the shoe2 value by 9, So this is the output.

Output:

$ g++ stu2.cpp

$ a.out

Adidas $ 9.99

Adidas $ 1.11

Answered by vishaljiya
0

association thx a Nand. Jabs
Similar questions