#include <stdio.h>
int main () {
char *x[5] = {"raju","ramu","tinu","ben","ali"};
printf("%s\n",(x[2]) );
return 0;
}
[0] is not required.
O/P should be "TINU". %s format specifier prints charachters until null character is encountered. And enclosing charachters in double quotes automatically makes it null terminating.