Skip to content

Instantly share code, notes, and snippets.

@jameswritescode
Created February 11, 2014 13:57
Show Gist options
  • Select an option

  • Save jameswritescode/8935286 to your computer and use it in GitHub Desktop.

Select an option

Save jameswritescode/8935286 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, const char *argv[])
{
char *people[3] = {"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii", "Robert Babcock", "Zach Smith"};
for (int i = 0; i < sizeof(people) / sizeof(people[0]); i++) {
printf("Size of people[%i]: %lu\n", i, sizeof(people[i]));
printf("Name: %s\n", people[i]);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment