16 lines
1.4 KiB
Text
16 lines
1.4 KiB
Text
C is a general-purpose programming language created by Dennis Ritchie at Bell Labs in 1972.
|
|
C is the lingua franca of operating systems and embedded systems programming.
|
|
The C standard library provides functions for input/output string manipulation memory allocation and more.
|
|
Pointer arithmetic is one of the most powerful and dangerous features of C.
|
|
Undefined behavior in C includes buffer overflows null pointer dereferences and signed integer overflow.
|
|
Memory safety is the programmer's responsibility in C unlike in managed languages.
|
|
The Linux kernel is written almost entirely in C with some assembly for low-level operations.
|
|
sizeof operator returns the size of a type or object in bytes.
|
|
malloc calloc realloc and free are the primary memory management functions.
|
|
String handling in C uses null-terminated character arrays with functions like strcpy strlen strcmp.
|
|
C99 C11 C17 and C23 are the major standards versions with varying levels of compiler support.
|
|
Pointers are variables that store memory addresses and allow direct memory manipulation.
|
|
Function pointers enable callbacks and dynamic dispatch in C.
|
|
The preprocessor handles directives like include define and ifdef before compilation.
|
|
Static analysis tools like lint cppcheck and coverity catch common C programming errors.
|
|
Buffer overflows are still the most common security vulnerability in C code after decades.
|