What happens if you try to compile and run this program?

Last Updated on May 1, 2022 by Admin 3

What happens if you try to compile and run this program?

#include <stdio.h>
#define ALPHA(x)    2*-x

int main(void) {
    int i = ALPHA((1-1));

    printf("%d", i);
    return 0;
}
  • the program outputs 0 
  • the program outputs -1
  • the program outputs -3
  • the program outputs -2
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments