0

how solving this challenge? why is the output 65?

#define x 10 + 5 int main() { int a = x * x; printf("%d", a); return 0; }

6th Dec 2021, 11:30 AM
it371
it371 - avatar
1 Réponse
+ 2
x is defined as 10+5 pre-processor directive. It is replaced as it in program when ever it finds x instance, So a= x * x // so expresions becomes like this => 10+5 * 10+5 => 10+ 50 + 5 => 65
6th Dec 2021, 11:54 AM
Jayakrishna 🇮🇳