fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. void *abc;
  5. int *abc2;
  6.  
  7. int someInt = 5;
  8. int *intPtr = &someInt;
  9. abc = intPtr; // This line is ok without casting
  10. abc2 = abc; // Here will be an error without casting
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 2004KB
stdin
Standard input is empty
stdout
Standard output is empty