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


I have one doubt.
What does below statement mean?
#define sizeof(operator)
where operator can be int or float etc.
Does this statement meaningful and where it can be used?



I have one doubt. What does below statement mean? #define sizeof(operator) where operator can be ..

Answer / senthil

The following define overrides all the occurrences of sizeof and replaces by blank, there is no definition of sizeof on the right hand side of expression

#define sizeof(operator)

example

printf("val = %d", sizeof(int)); is made to look like
printf("val = %d", ); // replaced by blank, int not processed
// causes compilation error

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Is it possible to run using programming C for Java Application?

2 Answers   NIC,


What is wrong with this initialization?

0 Answers  


what is uses of .net

0 Answers  


Name the language in which the compiler of "c" in written?

3 Answers   Bajaj,


What are the different flags in C? And how they are useful? And give example for each in different consequences?

1 Answers  


Write a program in c using only loops to print * * * * * *******

2 Answers   IBM,


Explain the difference between malloc() and calloc() function?

0 Answers  


What is c method?

0 Answers  


main() { int i; for(i=0;i<5;i++) printf("%d",1l<<i); } why doesn't 'l' affect the code??????

1 Answers  


write a program to sum of its digit with using control structure or with out using loop. for ex: let the number is 25634 then answer will be=2+5+6+3+4=20

4 Answers  


How can I remove the leading spaces from a string?

0 Answers  


Why does this code crash?

0 Answers  


Categories