C Language Fundamentals: 25 flashcards
All 25 flashcards from this kit, free and with no sign-up.
1. Who created C and where?
Show the answer
Dennis Ritchie at Bell Labs in the early 1970s.
2. What was C originally designed to build?
Show the answer
The UNIX operating system.
3. What does 'compiled' mean for C?
Show the answer
Source code is translated into machine code before the program runs.
4. What does 'procedural' mean in C?
Show the answer
Programs are built from functions that execute step by step.
5. What does 'statically typed' mean?
Show the answer
Every variable's type is fixed at compile time.
6. List the four stages of building a C program.
Show the answer
Preprocessing → Compilation → Linking → Loading.
7. What happens during preprocessing?
Show the answer
The preprocessor handles lines starting with `#`, such as `#include` and `#define`.
8. What does `#include <stdio.h>` actually do?
Show the answer
It pastes the contents of the standard I/O header file into your source file.
9. What does the linker do?
Show the answer
It stitches object files together and resolves references to library functions like `printf`, producing an executable.
10. What is the entry point of every C program?
Show the answer
`main()`.
11. What does `return 0` in `main` signal?
Show the answer
Success to the operating system.
12. What is a pointer?
Show the answer
A variable that stores a memory address.
13. What does the `&` operator do?
Show the answer
It takes the address of a variable.
14. What does the `*` operator do when applied to a pointer?
Show the answer
It dereferences the pointer, giving the value stored at that address.
15. How is memory allocated and released in C?
Show the answer
Allocated with `malloc` and released with `free`.
16. What is a memory leak?
Show the answer
Memory that was allocated but never freed, so it cannot be reused.
17. What causes undefined behavior in C memory handling?
Show the answer
Double-free or use-after-free.
18. Does C have a garbage collector?
Show the answer
No — unlike Java or Python, C requires manual memory management.
19. How are C strings represented?
Show the answer
As arrays of `char` terminated by the null character `\0`.
20. What is the difference between a compile-time error and a linker error?
Show the answer
A compile-time error is caught before linking (e.g. missing semicolon); a linker error happens during linking (e.g. calling `printf` without including `stdio.h`).
21. What is a runtime error?
Show the answer
An error that occurs only when the program executes, such as dividing by zero.
22. Name three real-world uses of C.
Show the answer
Operating system kernels, embedded systems (car ECUs, pacemakers), and language runtimes for Python/Ruby/PHP.
23. In `int *p;`, what does the `*` mean?
Show the answer
It marks `p` as a pointer to `int` — it is not multiplication.
24. What does each `.c` source file become before linking?
Show the answer
Its own object file (`.o` / `.obj`).
25. Why is C called the mother of modern programming languages?
Show the answer
It forms the foundation for many modern languages and operating systems.
Your notes can be a kit like these
Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free to start, in more than 40 languages.
- Chapter notes
- Flashcards
- Practice MCQs
- Scored tests
- Paper Solver
Get Veda free See what students get
Free to start · Android app and web · More than 40 languages