#include <stdio.h> #define prod(i,j) i*j int main() { int x=3,y=4; printf(" %d \n",prod(x+1,y)); } output :7 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

#include <stdio.h> #define prod(i,j) i*j int main() { int x=3,y=4; printf(" %d \n",prod(x+1,y)); } output :7

Why does this give 7 as output??

21st Nov 2019, 6:03 PM
mohamed Issati
mohamed  Issati - avatar
2 Answers
+ 3
3+1*4 what's the answer???
21st Nov 2019, 6:05 PM
✳AsterisK✳
✳AsterisK✳ - avatar
0
Ah ok it is about precedence Thank you ❤❤
21st Nov 2019, 6:08 PM
mohamed Issati
mohamed  Issati - avatar