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
Can a program have two main functions?
What are c header files?
Can we declare function inside main?
How pointers are declared?
Compare interpreters and compilers.
Why we use void main in c?
What is sizeof c?
write a program to print data of 5 five students with structures?
What is difference between static and global variable in c?
What is "Duff's Device"?
Explain what are the different file extensions involved when programming in c?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
What is %s and %d in c?
Subtract Two Number Without Using Subtraction Operator