C Programming: notes and questions
For CSE/IT students
Notes for each topic, a formula sheet, practice questions and 34 past GATE questions from 10 papers (2018–2026), 34 of them solved step by step.
- previous-year questions
- 34previous-year questions
- solved step by step
- 34solved step by step
- GATE papers, 2018–2026
- 10GATE papers, 2018–2026
- topics with notes
- 4topics with notes
Foundation
Learn the subject one topic at a time. Each topic has notes, the key formulas and practice questions.
Topic notes and formulas
Notes on every topic, with the key formulas and practice.
C fundamentals: types, operators, expressions and control flow
Programming in C fundamentals covers how a value is stored (its type and size), how it is transformed before and during an operation (promotions, conversions, wraparound and overflow), how operators combine values (precedence, associativity, short-circuiting and sequencing), and how control constructs decide what runs next (switch fall-through, loops with break and continue).
5 practice questions
Pointers, arrays and strings in C
Pointers, arrays and strings are where C's memory model shows through its syntax.
7 practice questions
Functions, parameter passing, scope and storage classes
This topic covers how C functions communicate with their callers and how their variables live and die.
5 practice questions
Recursion: tracing recursive programs
Recursion lets a function solve a problem by calling itself on a smaller instance until a base case is reached.
6 practice questions
C Programming formulas by topic
GATE
Past GATE questions on Programming in C by topic and year, the full papers, practice and the GATE syllabus.
34 questions, by topic and year
How many questions each topic had in the CS papers of each year. This shows what was asked, not what will be asked. We placed each question under a topic ourselves; the exam paper does not label topics.
| Topic | 2018 | 2020 | 2022 | 2023 | 2024 | 2025 | 2026 | Total |
|---|---|---|---|---|---|---|---|---|
| C basics | 1 | · | 1 | · | 3 | 2 | · | 7 |
| Pointers & arrays | 1 | 2 | 2 | · | 2 | 3 | 1 | 11 |
| Functions & scope | 1 | · | · | 1 | 1 | 1 | 3 | 7 |
| Recursion | 2 | 1 | · | 2 | 1 | 1 | 2 | 9 |
Solved papers
GATE CSE question papers with solutions: 2026 Set 1, 2026 Set 2, 2025 Set 1, 2025 Set 2, 2024 Set 1, 2024 Set 2, 2023, 2022, 2020, 2018
GATE 2023 comes from IIT Kanpur's own copy of the paper and its answer key, which numbers the CS questions Q.11 to Q.65. For 2024, 2025 and 2026 both sessions (CS1 and CS2) are included.
23 practice questions
The GATE syllabus for Programming in C, paper by paper
From the GATE 2027 syllabus PDF: the first two items of CS Section 4, “Programming and Data Structures”. The rest of that section (arrays, stacks, queues, linked lists, trees, binary search trees, binary heaps and graphs) is on the Data Structures and Algorithms page.
Show the GATE CS wordingHide the GATE CS wording
Programming in C. Recursion.
Preparing in Kolkata? See IAE Academy’s GATE CS coaching.
Other exams
2 questions on Programming in C from ISRO's Scientist/Engineer written test (ISRO CS 2025, ISRO CS 2023), by topic. They are not counted in the GATE numbers on this page.
ESE (UPSC Engineering Services)
These lines of the ESE 2027 syllabus match topics in the Programming in C notes.
Electrical Engineering: 2 lines
Paper I · 5. Computer Fundamentals
- data representation and programmingC fundamentals
- Elements of programming languages, typical examplesC fundamentals, Functions, parameter passing, scope and storage classes
Electronics & Telecommunication Engineering: 2 lines
Paper II · 3. Computer Organization and Architecture
- Data representation& ProgrammingC fundamentals
- Elements of programming languages, typical examplesC fundamentals, Functions, parameter passing, scope and storage classes
We matched the ESE syllabus to these topics ourselves; UPSC does not.
Source: UPSC Examination Notice No. 02/2027-ENGG, 16 September 2026, pp. 47, 50
Who can sit ESE, the papers and UPSC’s past papers