find the output of this code

#include
#define MUL(a,b) a*b
#define Pow(a) a*a
int main()
{
int a=3;
int b=2;
printf("Ans: %d\n", MUL (MUL(a+1,b), Pow(b+1)));
return 0;
}

Replies

  • jigneshdgreat
    jigneshdgreat
    Ans: 10
    it gets evaluated as :a+1*b*b+1*b+1
  • deepu11111111
    deepu11111111
    Yes 10
  • PraveenKumar Purushothaman
    PraveenKumar Purushothaman
    Ans: 10!

You are reading an archived discussion.

Related Posts

If a rotor without stator having 3 phase AC winding and free to rotate, if 3 phase power supply is given to its winding through slip ring, then what happen,...
While Facebook is retiring their 'fShare' button with Facebook Like button, Google has launched a new 'Google+ Share' button to make it easier for people on Google Plus to share...
Looks as though recycling is going all out. Ice cream cones have been around for a while. This goes much farther. Edible packaging. https://foodstuffsa.co.za/index.php/...uff/1814-wikicells-food-packaging-you-can-eat
I thought that the stylus had had its day. Gesturing is in. The styluss is fighting back with a slew of apps. https://online.wsj.com/article/SB10001424052970203458604577265451077949064.html