fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i = 0;
  5. int nb = scanf("%d", &i);
  6.  
  7. printf("number of value read: %d\n", nb);
  8. printf("value of i = %d\n", i);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 2172KB
stdin
a
stdout
number of value read: 0
value of i = 0