0

Following is a Simple C program . Source Code:

    #include<stdio.h>
    #define PRODUCT(x) ((x)*(x))
    int main()
    {
        int i = 3, j, k , l;
        j = PRODUCT(i+1);
        k = PRODUCT(i++);
        l = PRODUCT(++i);
        
    
        printf("\n%d %d %d %d",i , j, k , l);
        return 0;
    }

Equivalent Processed [after preprocessing]
Note : This only the snippet from the whole .i file

OUTPUT :

7 16 12 49


Question : Why l is printing 49 , isn't it 42 ?
davidmesalpz
  • 119
  • 5
  • 1
    Please do not post pictures of code or any other plain text. That's not artwork. Instead just copy&paste the code/input/output etc as formatted text into your question. – Gerhardh Jun 08 '21 at 09:15

0 Answers0