Array of pointer to string
//in string %s we are writing names without pointer * because %s give value at funtion
#include <stdio.h>
int main()
{
char *p = "rohit parmar";
char *q = "vishal parmar";
char *names[] = {
p,
q
};
printf("%s\n %s\n " , names[0] , names[1]);
return 0;
}
Comments
Post a Comment