Answer to Question #206650 in C++ for khosa

Question #206650

Comment on the output of this C++ code? #include struct temp { int a; int b; int c; }; int main() { struct temp p[] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; return 0; } 1. No Compile time error, generates an array of structure of size 3 2. No Compile time error, generates an array of structure of size 9 3. Compile time error, illegal declaration of a multidimensional array 4. Compile time error, illegal assignment to members of structure


1
Expert's answer
2021-06-14T03:00:54-0400

When this program is executed, nothing is display on the screen. This is because, cout, which causes output on the screen , has not been used


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog