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...

main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?

Answer Posted / niru

2 2 2
it returns the size of the int.
if the compiler is 32bit, size of the int=4
o/p: 4 4 4
For example:
void main()
{
long int i;
clrscr();
printf("%d %d %d \n",sizeof(i),sizeof("3"),sizeof(3));
getch();
}
output:4 2 2

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an endless loop?

1285


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1241


List some of the static data structures in C?

1205


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

1059


What functions are used in dynamic memory allocation in c?

1094


What is double pointer?

1008


Write a progarm to find the length of string using switch case?

2073


What are the standard predefined macros?

1152


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1122


By using C language input a date into it and if it is right?

1088


What are header files? What are their uses?

1223


If I have a char * variable pointing to the name of a function ..

1179


How do I create a directory? How do I remove a directory (and its contents)?

1176


Is anything faster than c?

1019


What are different types of variables in c?

1087