Click here to Skip to main content
15,896,456 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Can structure type variable can be declared as 2D array?
Posted
Comments
nv3 5-Mar-13 9:18am    
Yes.
PIEBALDconsult 5-Mar-13 9:28am    
Yes, of course. Didn't you try it?

1 solution

Yes. Something like:
C#
struct pixel {
    x,
    y;
};

int N=10;
pixel shape[N][N];
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900