#define d 10+10
main()
{
printf("%d",d*d);
}

Answer Posted / vrushali

This boils down to (10 +10 * 10 + 10)

so answer is 120 ... but if the same macro was rewritten as
#define d (10 + 10)

then d * d = (10 + 10 ) * (10 + 10)
= 20 * 20
= 400....

Pure macro concept....

Is This Answer Correct ?    15 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are run-time errors?

594


What is the function of this pointer?

666


What are the disadvantages of c language?

612


What does char * * argv mean in c?

617


Write a program to find the biggest number of three numbers in c?

584






What is the significance of scope resolution operator?

847


What is the advantage of a random access file?

635


Why is void main used?

611


Why does everyone say not to use gets?

603


Explain About fork()?

638


Write a function that will take in a phone number and output all possible alphabetical combinations

592


What is a pointer and how it is initialized?

598


What is c value paradox explain?

565


What is the advantage of c?

607


If fflush wont work, what can I use to flush input?

603