Close,
Current:
Correct:Code:while((c=getchar())!='\n && ch!=EO);
- Stack OverflowCode:while((c=getchar())!='\n' && c!=EOF);
Close,
Current:
Correct:Code:while((c=getchar())!='\n && ch!=EO);
- Stack OverflowCode:while((c=getchar())!='\n' && c!=EOF);
Last edited by Stack Overflow; 03-07-2005 at 04:45 PM.
Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.