Object sizes and limits under a stated GATE model, integer literal types, integer promotions and the usual arithmetic conversions, signed and unsigned pitfalls, the precedence and associativity ladder, division and remainder, bitwise operators and shifts, and preprocessor macro pitfalls with formatted I/O.
5 sheetsPCC-02PCC-03PCC-04
if and else pairing, switch entry and fall-through, while, do-while and for loops, counting iterations, break, continue and goto, and loops that never end because of unsigned or floating counters.
1 sheetPCC-08
Call by value and emulating call by reference with pointers, array parameters, argument evaluation order, parameter passing models in theory questions, block and file scope, storage duration, linkage and the auto, static, extern and register specifiers.
2 sheetsPCC-09PCC-10
Base and recursive cases, stack frames, tracing prints placed before and after recursive calls, call trees, recursion depth, recurrences for the number of calls, memoisation, tail recursion and mutual recursion.
2 sheetsPCC-11PCC-12
Address and indirection operators, pointer arithmetic and comparisons, void pointers and null pointers, pointers to pointers, const placement, function pointers, reading declarations, malloc, calloc, realloc and free, leaks, double free, dangling and wild pointers, and linked structures.
3 sheetsPCC-13PCC-14PCC-18
Array to pointer decay and its exceptions, sizeof traps, array parameters, two-dimensional arrays with row-major address arithmetic, character arrays versus string literals, sizeof versus strlen and the common string library functions.
2 sheetsPCC-15PCC-16
Structure layout with implementation-defined padding, sizeof and offsetof, unions, enumerations, typedef, member access through pointers, structure copy and comparison, and bit fields.
1 sheetPCC-17
How to tell standard behaviour from implementation-defined, unspecified and undefined behaviour, sequencing and side effects, short-circuit evaluation, constraint violations that fail to compile, and how to answer GATE options when a program has no defined output.
2 sheetsPCC-06PCC-07
The traps sheet, the question-pattern routines and the master last-day sheet for Programming in C and recursion.
3 sheetsPCC-20PCC-21PCC-22