#define sqrt(x) x*x
int main(){
int x=5;
int y=sqrt(x+1);
return 0;

The answer is 11.
Can anyone explain why?

Recommended Answers

All 2 Replies

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.