Please enable JavaScript.
Coggle requires JavaScript to display documents.
Fundamentals of C (Key questions (Why volatile keyword is used?, const…
Fundamentals of C
Key questions
-
-
What are stages of compiling a C program ?
Preprocessing
Compilation ( Turing code in assembly language)
Assembly ( Turning into object code)
Linking
-
-
Programming - Pointers
int *ptr = 0; printf("%d", i);
char arr[6]="123456"; int*ptr; ptr = malloc(6); memcpy(&ptr, &arr, 6); printf("%s", ptr);
int *ptr = "0"; printf("%d", ptr); printf("%s", ptr);
-
-
-
foo(string); foo(char* str) { char arr[11]; strcpy(str, arr) } //what happens in str is > 11
-
-