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


Please Help Members By Posting Answers For Below Questions

How can I find out the size of a file, prior to reading it in?

616


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1889


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2980


Is that possible to store 32768 in an int data type variable?

687


What is a buffer in c?

569






Write a program to print factorial of given number without using recursion?

567


What is the difference between constant pointer and constant variable?

743


What are the types of operators in c?

610


How important is structure in life?

586


Describe the order of precedence with regards to operators in C.

631


How do c compilers work?

603


How do you list files in a directory?

559


Explain how are 16- and 32-bit numbers stored?

781


What is getch() function?

645


What is the difference between int main and void main?

571