#include <stdio.h> int main() { int i=10; static int x=i; if(x==i) printf("Equal"); else if(x>i) printf("Greater"); else printf("Lesser"); return 0; }
Standard input is empty
prog.c: In function ‘main’: prog.c:5:15: error: initializer element is not constant static int x=i; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!