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 find out the size of a file, prior to reading it in?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Is that possible to store 32768 in an int data type variable?
What is a buffer in c?
Write a program to print factorial of given number without using recursion?
What is the difference between constant pointer and constant variable?
What are the types of operators in c?
How important is structure in life?
Describe the order of precedence with regards to operators in C.
How do c compilers work?
How do you list files in a directory?
Explain how are 16- and 32-bit numbers stored?
What is getch() function?
What is the difference between int main and void main?