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

How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

16769


What is openmp in c?

1022


What is difference between union All statement and Union?

1105


Can two or more operators such as and be combined in a single line of program code?

1368


Why is not a pointer null after calling free?

1018


What is a built-in function in C?

1595


Write a program to check whether a number is prime or not using c?

1058


How can I get back to the interactive keyboard if stdin is redirected?

1188


Explain how can I manipulate strings of multibyte characters?

1203


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1071


Why we write conio h in c?

1029


Explain union. What are its advantages?

1078


What is the main difference between calloc () and malloc ()?

1152


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3363


how could explain about job profile

1917