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

What are bitwise shift operators in c programming?

1040


Why c is called top down?

1096


State the difference between x3 and x[3].

1054


Can you pass an entire structure to functions?

1082


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2011


What is the best way to comment out a section of code that contains comments?

1268


write a program to print largest number of each row of a 2D array

2270


p*=(++q)++*--p when p=q=1 while(q<=6)

1700


How pointer is different from array?

1020


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1135


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

1072


When is a void pointer used?

1194


Can you write a programmer for FACTORIAL using recursion?

989


What is a class c rental property?

1044


Why c language?

1010