-
Notifications
You must be signed in to change notification settings - Fork 771
C Programming, Review Questions
int main(){
fprintf(stderr, "Hello ");
fprintf(stdout, "It's a small ");
fprintf(stderr, "World\n");
fprintf(stdout, "place\n");
return 0;
}
C Strings representation C Strings as pointers char p[]vs char* p Simple C string functions (strcmp, strcat,strcpy) sizeof char sizeof x vs x* Heap memory lifetime Calls to heap allocation Deferencing pointers Address-of operator Pointer arithmetic String duplication String truncation double-free error String literals Print formatting. memory out of bounds errors static memory fileio POSIX v C library C io fprintf and printf POSIX file io (read|write|open) Buffering of stdout
Legal and Licensing information: Unless otherwise specified, submitted content to the wiki must be original work (including text, java code, and media) and you provide this material under a Creative Commons License. If you are not the copyright holder, please give proper attribution and credit to existing content and ensure that you have license to include the materials.