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?
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.
thank you again.