how does the above code work ??Code:typedef int c[12]; c name={1,2,3,4}; cout<<name[0];
how does the above code work ??Code:typedef int c[12]; c name={1,2,3,4}; cout<<name[0];
The 2nd line reads like:
The rest of the places remain uninitialized.Code:int name[12] = {1,2,3,4};
btw.... Though it doesn't matter here, you should post threads having C++ code in the C++ page.