Can someone explain how the output is derived for the second printf statement.
I have not understood how the value of x changed to 13 instead of 10. Detailed step by step explanation please.
#include <stdio.h>
#define f(a,b) a+b
#define g(a,b) f(a,b)/f(a,b)
int main(){
int x=4;
g(x,x+1);
printf("%d\n",x);
x=g(x,x+1);
printf("%d",x);
return 0;
}