How would you find the length of each string in the following Program?
main()
{
char *str[] = { "Frogs", "Do", "Not" , "Die" , "They" , "Croak!"};
printf ("%d%d", sizeof (str), sizeof (str[0]));
}5
1078 5b5cc7dde4d2b419777515d7
Q: How would you find the length of each string in the following Program? main() { char *str[] = { "Frogs", "Do", "Not" , "Die" , "They" , "Croak!"}; printf ("%d%d", sizeof (str), sizeof (str[0])); }
- Show Answer
- Workspace
- Discuss