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
What are bitwise shift operators in c programming?
Why c is called top down?
State the difference between x3 and x[3].
Can you pass an entire structure to functions?
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.
What is the best way to comment out a section of code that contains comments?
write a program to print largest number of each row of a 2D array
p*=(++q)++*--p when p=q=1 while(q<=6)
How pointer is different from array?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
When is a void pointer used?
Can you write a programmer for FACTORIAL using recursion?
What is a class c rental property?
Why c language?