#include <stdio.h> #define j i int main(void) { int i = 0; int j = 0; for (i = 0; i < 5; i++) { for (j = 0; j < 5; j++) { } } return 0; }
Standard input is empty
prog.c: In function 'main':
prog.c:3:11: error: redefinition of 'i'
#define j i
^
prog.c:7:6: note: in expansion of macro 'j'
int j = 0;
^
prog.c:6:6: note: previous definition of 'i' was here
int i = 0;
^
Standard output is empty