fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. /* local variable definition */
  5. int counter = 10;
  6.  
  7. /* while loop execution */
  8. while( counter > 0 ) {
  9. printf("value of a: %d\n", counter);
  10. a--;
  11. }
  12.  
  13. return 0;
  14. }
  15.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:10:7: error: 'a' undeclared (first use in this function)
       a--;
       ^
prog.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
stdout
Standard output is empty