+ 2
Plz anwer this code ? Right answer is 14 but how plz explain me
#include<stdio.h> #define foo(x,y) x/y int main() { Printf("%d",foo(8+4,2+4)); Return 0; }
4 Respostas
+ 6
It will evaluate 4, 2 because they are the ones next to the comma that shows what values are to be passed to foo. 4/2 = 2. Then it will add 8+2+4 = 14
+ 6
foo(8+4,2+4)
== 8+4/2+4
== 8+2+4
== 14.
+ 3
Thank you Peter c..
+ 2
Thank you Diego