How does the following code work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How does the following code work?

#include <iostream> using namespace std; int main() { struct {int a[2];} arr[]={{1},{2}}; cout<<arr[0].a[0]<<" "<<arr[0].a[1]<<" "<<arr[1].a[0]<<" "<<arr[1].a[1]; return 0; }

18th Jul 2019, 5:03 AM
Vishesh
1 Answer
+ 1
~ swim ~ Thank you for helping. 😊
19th Jul 2019, 4:42 PM
Vishesh