#include <stdio.h> int main(void) {const int x;x = 2;printf("%d", x); return 0;}
2
prog.c: In function ‘main’: prog.c:5:3: error: assignment of read-only variable ‘x’ x = 2; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!