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

What is the difference between array and pointer in c?

0 Answers  


What's the best way to declare and define global variables?

7 Answers  


write a program which will count occurance of a day between two dates.

1 Answers   IonIdea,


What is function definition in c?

0 Answers  


What are the restrictions of a modulus operator?

0 Answers  






Explain what is a pragma?

0 Answers  


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

2 Answers   IBM,


What would be an example of a structure analogous to structure c?

0 Answers  


write a c/c++ programthat connects to a MYSQL server and checks if the INNoDB plug in is installed on it.If so your program should print the total number of disk writes by MYSQL.

0 Answers   BirlaSoft,


how to find the largest element of array without using relational operater?

6 Answers   Satyam, Wipro,


write function to reverse char array ... without using second array

3 Answers  


Tell me when would you use a pointer to a function?

0 Answers  


Categories