I was thinking to create something like
Is it possible to do it in array type?Code:a = { {"a1", "a2"}, {"b1", "b2", "b3"} }
Could someone give me some hint how can I acheive this?
This is a discussion on How to create multi-dimension string array within the C Programming forums, part of the General Programming Boards category; I was thinking to create something like Code: a = { {"a1", "a2"}, {"b1", "b2", "b3"} } Is it possible ...
I was thinking to create something like
Is it possible to do it in array type?Code:a = { {"a1", "a2"}, {"b1", "b2", "b3"} }
Could someone give me some hint how can I acheive this?
You can't assign arrays, but you can initialise them
Code:int main( ) { char a[2][3][3] = { {"a1", "a2"}, {"b1", "b2", "b3"} }; char *b[2][3] = { {"a1", "a2"}, {"b1", "b2", "b3"} }; return 0; }
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
thank you again.