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

Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

4283


What is wrong in this statement?

1165


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2089


Why is #define used?

1286


Which is better pointer or array?

1039


Is void a keyword in c?

993


Does c have an equivalent to pascals with statement?

1017


What is scope rule of function in c?

1111


find out largest elemant of diagonalmatrix

2264


What is the purpose of sprintf?

1150


Write program to remove duplicate in an array?

1093


Explain how can I convert a string to a number?

1112


Give differences between - new and malloc() , delete and free() ?

1108


How can I read and write comma-delimited text?

1081


Explain the use of 'auto' keyword

1128