hello all,
i was trying a question which i have mentiond below.
please try to explain the last output in the first printf and please verify your tests using the value 'oneone' in place of 'one' in char a[5][10] and then arrive on any answer
program:
Code:main() { char a[5][10]={"One", "Two", "Three", "Four", "Five" }; char **str = a; char *b[5]={"One", "Two", "Three", "Four", "Five" }; char **str1 = b; printf("%p %p %p %p %p %p\n", a, str, &a[1], &str[1], &a[1][1], &str[1][1]); printf("%p %p %p %p %p %p\n", b, str1, &b[1], &str1[1], &b[1][1], &str1[1][1]); }
thanks in advance.