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
How can I read/write structures from/to data files?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
How does normalization of huge pointer works?
What is pointer in c?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What is the purpose of ftell?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
Write a program to generate the Fibinocci Series
Can stdout be forced to print somewhere other than the screen?
What is hungarian notation? Is it worthwhile?
When should a type cast not be used?
What is unary operator?
I have seen function declarations that look like this
How do you determine a file’s attributes?
What is the right way to use errno?