BTI Beyond The Interviews

Languages · 10 sections

C

Pointers, memory, and the C standard library — the foundation every systems interview touches.

Premium · preview 118 cards Updated 24 Oct 2026
Free to preview. The first 3 cards and the full outline are below — the rest of this sheet is part of the Languages bundle.

What's inside

Preview — first 3 of 118 cards

What are the basic built-in types in C?

char, short, int, long, long long (and unsigned variants), float, double, long double. _Bool, _Complex. _Imaginary is optional and essentially unimplemented. Fixed-width types (int32_t, uint64_t) in <stdint.h>. In C23, bool/true/false are keywords. Sizes are implementation-defined; use sizeof.

#include <stdint.h>
int32_t a = 42;
size_t n = sizeof(a);   // 4
printf("%zu\n", sizeof(double));

What is the difference between declaration and definition?

A declaration introduces a name and type (may be incomplete). A definition also allocates storage / provides body. `extern int x;` declares; `int x = 5;` defines. Functions: prototype declares, body defines.

extern int counter;          // declaration
int counter = 0;             // definition
void f(int);                 // declaration (prototype)
void f(int x) { /* body */ } // definition

What are storage classes in C?

auto (default local), static (internal linkage or persistent local), extern (external linkage), register (hint; still valid C, cannot take address). C23 reuses auto for type inference. static at file scope makes symbol file-private. static local persists across calls.

static int file_private = 0;   // internal linkage
void f(void) {
    static int calls = 0;     // persists
    calls++;
}

115 more cards in this sheet

Unlock the Languages bundle — ₹399

One-time payment. Unlocks this sheet and 7 other sheets in the bundle, plus a typeset PDF of each.

Unlock the bundle See all bundles

Or get all 76 sheets for ₹999 — one payment, every future sheet included.