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 Respuesta
+ 1
~ swim ~ Thank you for helping. 😊
19th Jul 2019, 4:42 PM
Vishesh