#include <stdio.h> int main(void) { /* local variable definition */ int counter = 10; /* while loop execution */ while( counter > 0 ) { printf("value of a: %d\n", a); a--; } return 0;}
Standard input is empty
prog.c: In function 'main': prog.c:9:34: error: 'a' undeclared (first use in this function) printf("value of a: %d\n", a); ^ prog.c:9:34: note: each undeclared identifier is reported only once for each function it appears in
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!