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

The code is::::: if(condition) Printf("Hello"); Else Printf("World"); What will be the condition in if in such a way that both Hello and world are printed in a single attempt?????? Single Attempt in the sense... It must first print "Hello" and it Must go to else part and print "World"..... No loops, Recursion are allowed........................

14 Answers   HOV Services, IBM, Potty,


Why are algorithms important in c program?

0 Answers  


What is page thrashing?

0 Answers  


What is the process to create increment and decrement stamen in c?

0 Answers  


What are bit fields? What is their use?

2 Answers   Adobe,






How to implement call back functions ?

3 Answers   HP,


Explain what is the difference between text files and binary files?

0 Answers  


What are comments and how do you insert it in a C program?

0 Answers  


what is the use of bitfields & where do we use them?

2 Answers  


How to write a code for reverse of string without using string functions?

0 Answers   TCS,


Program to find the absolute value of given integer using Conditional Operators

6 Answers   N Tech,


why do some people write if(0 == x) instead of if(x == 0)?

0 Answers  


Categories