Strings : Why is this program not printing the first element?
Why is this program not printing the first element?
when I printf(%s",names[0]) it shows aaditjobs.
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char names[][5] = { "aadit", "jobs", "mark", }; printf("%s\n",names[0]); getch(); }
when I printf(%s",names[0]) it shows aaditjobs.
0