Get Started
1091

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

Answer :
Explanation :

main() {    char *str[] = { "Frogs", "Do", "Not", "Die." , "They", "Croak!" };    int i;          for ( i = 0;i

The Most Comprehensive Exam Preparation Platform

Get the Examsbook Prep App Today