Click here to Skip to main content
15,890,399 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
two dimensional its working only we can store name only in order to store both is there any possibility
Posted
Updated 18-Oct-12 1:08am
v2
Comments
Zoltán Zörgő 18-Oct-12 7:09am    
1) Why do you want this? Be aware that your definition means 3x20x50=3000 elements! But why in a 3d array?
2) Post your code here.

create a structure to achieve this.
C
struct person {
   int id;
   varchar name;
   varchar address;
}


then create a array of structure.
 
Share this answer
 
v3
Comments
fjdiewornncalwe 18-Oct-12 9:57am    
+5. Nice.
 
Share this answer
 
v3
Comments
Zoltán Zörgő 18-Oct-12 7:14am    
You haven't read the tags: C not C#!
Ambesha 18-Oct-12 7:29am    
syntex will change not approch :)
Zoltán Zörgő 19-Oct-12 1:56am    
true: malloc in c# :)
Ambesha 19-Oct-12 5:10am    
Thanks
PRASHANT KUMAR LAL 18-Oct-12 7:33am    
yes Ambesha I agree

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