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?

Answers were Sorted based on User's Feedback



#include<std.h> int main() { char *str[]={"Frogs","Do","Not",..

Answer / sr. amit tyagi

hi dear my name is Amit.
firtly i want to ask that you have used std.h. header
file.can u tell me about this one becuouse i am using
stdio.h header file instead of it.it can make an error if
it is not header file.second thing is that you have used
function strln() which is the function of string.h. to use
this function we have to this header file.it will produced
error with out this header file.
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char *str[]={"Frogs","Do","Not","Die","They","Croak!"};
printf("%d %d\n",sizeof(str),strlen(str));
getch();
}
the out put will be 12 and 1....

Is This Answer Correct ?    3 Yes 1 No

#include<std.h> int main() { char *str[]={"Frogs","Do","Not",..

Answer / janava

In this it generate an error because declaration the array
as char but read the variable as integer.

Is This Answer Correct ?    7 Yes 6 No

#include<std.h> int main() { char *str[]={"Frogs","Do","Not",..

Answer / 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

#include<std.h> int main() { char *str[]={"Frogs","Do","Not",..

Answer / naresh lingampally

will be a error since ..

syn: *x will be a pointer and it would always be a digit .
so no variable address can be a character ...

MAKES SENSE ?

Is This Answer Correct ?    0 Yes 1 No

#include<std.h> int main() { char *str[]={"Frogs","Do","Not",..

Answer / guest

6


Is This Answer Correct ?    0 Yes 2 No

#include<std.h> int main() { char *str[]={"Frogs","Do","Not",..

Answer / kelly baby

Hello dear new friend,
my name is Kelly i read your profile and i decided to
contact you hopping that you will accept me as your friend,
please if you accept my request reply my true my email
address (kellybaby004@yahoo.in) so that i will send you my
picture and tell you more about me, do not late far
decadence be a barrier let love cornet because love is
abridge cornet far decadence to be lose.
yours kelly

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

When can a far pointer be used?

0 Answers  


Explain the difference between #include "..." And #include <...> In c?

0 Answers  


which is faster execution: loops or recursion?

3 Answers  


What is the use of a ‘’ character?

0 Answers  


Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.

3 Answers   Google,


Rapunzel walks into the forest of forgetfullness. She meets a Lion who lies on Monday Tuesdays and Wednesdays and meets a rabbit who lies on Thurs fridays and saturdays . On that day both say that "I lied yesterday". What day is it .

3 Answers   TCS,


print the pattern 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 if n=5

3 Answers   Winit,


main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

2 Answers  


what is function pointer?

2 Answers   Wipro,


how to write a bubble sort program without using temporary variable?

1 Answers   Aricent,


what r callback function?

1 Answers  


Explain 'bit masking'?

0 Answers   EXL,


Categories