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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3501


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

2055


What is abstract data structure in c?

1021


What is the difference between variable declaration and variable definition in c?

1043


How do you convert strings to numbers in C?

1213


What is a node in c?

967


What is the process to generate random numbers in c programming language?

1160


In a header file whether functions are declared or defined?

1116


Which is an example of a structural homology?

1305


What is FIFO?

1656


Explain what are the standard predefined macros?

1099


What are the difference between a free-standing and a hosted environment?

1271


write a proram to reverse the string using switch case?

2917


What is the heap?

1209


What does printf does?

1222