fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. numOfChars = 4;
  6. printf("%.numOfCharss\n", "Hello, world!");
  7. }
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5: error: ‘numOfChars’ undeclared (first use in this function)
prog.c:5: error: (Each undeclared identifier is reported only once
prog.c:5: error: for each function it appears in.)
prog.c:6: warning: precision used with ‘%n’ printf format
prog.c:6: warning: writing into constant object (argument 2)
prog.c:6: warning: format ‘%.n’ expects type ‘int *’, but argument 2 has type ‘char *’
stdout
Standard output is empty