q4.c:16:1: error: expected ‘,’ or ‘;’ before ‘printf’ 16 | printf("sum of a and c is % d+ %c = %d \n",a,c,Ac); | ^~~~~~
</code>
This is the error Iam encountering in my code and this error resolves when:-
int AX = x+ a // This is the line which I guess is causing the issue printf("sum of a and c is % d+ %c = %d \n",a,c,Ac); printf("sum of x and c is % f+ %d = %d \n",x,c,XC); printf("sum of x and dx is %lf+ %f = %lf \n",dx,x,DXX); printf("sum of dx and ax is %lf + %ld = %lf \n",dx,ax,DAX); printf("sum of a and x is %f + %d = %d \n",x,a,AX); // this is the line which when commented the error is removed
iF ANYONE knows answer to this question plz help me with it.