Disqus Shortname

Sunday, August 16, 2015

Program: Array of Char Pointer



#include <stdio.h>

const int MAX = 4;

int main() {

char *names[] = { "Google", "Amazon", "Toshiba", "Sony", };
int i = 0;

for (i = 0; i < MAX; i++) {

printf("Value of names[%d] = %s\n", i, names[i]);

}

return 0;
}

/*-via Programming Hub for Android, a top rated Programming App on Google Play

https://play.google.com/store/apps/details?id=com.freeit.java*/


No comments:

Post a Comment