#include<stdio.h>
#define sqrt(x) x*x
int main(){
int x=5;
int y=sqrt(x+1);
printf("%d\n",y);
return 0;
}

The answer is 11.
Can anyone explain why?
thanks

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.