+ 1
Are They Same(First Look "Are They Same 1")2?
just character numbers. Don't say your method is wrong. Because I am using this method. For example: char *const ptr[4]={{"hey"},{"what"},{"is"},{"happening"}};
1 Answer
+ 11
According to my understanding, this should not work. You are declaring a array of size 4 which stores constant character pointers. While "string" is a string literal stored somewhere in the memory, I doubt doing {"string"} would return the memory address of it.