CrazyEngineers
  • find the output of this code

    Updated: Oct 26, 2024
    Views: 1.0K
    #include<stdio.h>
    #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;
    }
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • jigneshdgreat

    MemberApr 24, 2012

    Ans: 10
    it gets evaluated as :a+1*b*b+1*b+1
    Are you sure? This action cannot be undone.
    Cancel
  • deepu11111111

    MemberApr 26, 2012

    Yes 10
    Are you sure? This action cannot be undone.
    Cancel
  • PraveenKumar Purushothaman

    MemberMay 6, 2012

    Ans: 10!
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register