fork(1) download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int i=10;
  5. static int x=i;
  6. if(x==i)
  7. printf("Equal");
  8. else if(x>i)
  9. printf("Greater");
  10. else
  11. printf("Lesser");
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:15: error: initializer element is not constant
  static int x=i;
               ^
stdout
Standard output is empty