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

answer is :1 2 2 ;

size('3')means character constant so it is short int size it
will ocupi 1.

size("3")it will treated as string. 2

size(3) it is integer 2

Is This Answer Correct ?    9 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why & is used in c?

1199


Explain what are linked list?

1052


Differentiate between the expression “++a” and “a++”?

1261


What is stack in c?

1088


What is the deal on sprintf_s return value?

1144


What are Macros? What are its advantages and disadvantages?

1168


What are the general description for loop statement and available loop types in c?

1133


What is difference between arrays and pointers?

1083


What are the application of void data type in c?

1196


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2397


What is 2 d array in c?

1031


What is difference between union All statement and Union?

1118


Explain what is the difference between #include and #include 'file' ?

1037


What are the uses of null pointers?

1132


the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....

23783