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
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What is abstract data structure in c?
What is the difference between variable declaration and variable definition in c?
How do you convert strings to numbers in C?
What is a node in c?
What is the process to generate random numbers in c programming language?
In a header file whether functions are declared or defined?
Which is an example of a structural homology?
What is FIFO?
Explain what are the standard predefined macros?
What are the difference between a free-standing and a hosted environment?
write a proram to reverse the string using switch case?
What is the heap?
What does printf does?