#include <stdio.h> #define PI = 3.141592; int main(void) { int a; int area, peri; area = PI * a*a; peri = PI *2 *a; }
5.0
prog.c: In function 'main':
prog.c:3:12: error: expected expression before '=' token
#define PI = 3.141592;
^
prog.c:11:9: note: in expansion of macro 'PI'
area = PI * a*a;
^
prog.c:11:12: error: invalid type argument of unary '*' (have 'int')
area = PI * a*a;
^
prog.c:3:12: error: expected expression before '=' token
#define PI = 3.141592;
^
prog.c:12:9: note: in expansion of macro 'PI'
peri = PI *2 *a;
^
prog.c:12:12: error: invalid type argument of unary '*' (have 'int')
peri = PI *2 *a;
^
Standard output is empty