Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

#include<std.h>
int main()
{
char *str[]={"Frogs","Do","Not","Die","They","Croak!"};
printf("%d %d\n",sizeof(str),strlen(str));
...return 0;
}
what will the output of the above program?

Answer Posted / s.ramakrishna

thw output becomes 6 6
why because the character pointer stores their values and
that will be printed

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of Macro over function?

1993


What kind of structure is a house?

1031


How do you construct an increment statement or decrement statement in C?

1213


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1102


What is an auto keyword in c?

1080


Explain the meaning of keyword 'extern' in a function declaration.

1141


What are the disadvantages of external storage class?

1042


What is the use of void pointer and null pointer in c language?

1105


What are the types of unary operators?

1172


How many levels deep can include files be nested?

1130


What does sizeof int return?

1062


What is meant by type casting?

1047


What is the purpose of main( ) in c language?

1125


Who developed c language?

1072


How do you search data in a data file using random access method?

1292