fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char val[]={'a','b'};
  5. int i;+
  6. i=val[0];
  7. printf("%d",i);
  8. // your code goes here
  9. return 0;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:3: error: lvalue required as left operand of assignment
  i=val[0];
   ^
stdout
Standard output is empty