I have read char four[4] = "four"; What are the correct semantics for this statement?
I am using Xcode
and writing Objective C
code.
I don't understand why:
char words[4] = { "aardvark", "abacus", "allude", "zygote" };
gives a warning
warning: Semantic Issue: Initializer-string for char array is too long
but
char *words[4] = { "aardvark", "abacus", "allude", "zygote" };
works fine. Kindly guide me.