User Defined Functions — Study Resources & PYQs
Function declaration, definition and function call.
- Estimated study time: 75 minutes
Study resources
- C Functions section - GeeksforGeeks tutorial (Article) — Covers prototypes, definitions, calls and return types with examples. Understanding why a prototype is needed before the call is the key idea here.
- NPTEL - Problem Solving Through Programming in C (functions weeks) (Article) — Teaches functions as a way to decompose a problem rather than just as syntax. That framing matters more than the syntax and is what the course objective explicitly targets.
- User-Defined Function in C (GeeksforGeeks) (Article) — Covers the three parts of using a function — declaration (prototype), definition, and function call — with clear example programs.
- Introduction to Functions in C (Video) — Lecture-style video explaining what a function is, the syntax for defining one in C, and why functions are used to organise code.
User Defined Functions previous year questions
- 5. (a) What is function? Explain different classification of user defined functions based on parameter passing and return type with examples.
- (a) Why do we use functions in C? Explain the user-defined functions with the help of suitable example. (10) (b) Write a program to swap two variables without…
Taught in these subjects
- COMPUTER PROGRAMMING — BCST11 · Government College of Engineering and Technology, Jammu
- Computer Programming — CST3101 · Government College of Engineering and Technology, Jammu
- Fundamentals of Programming Using C — CST3201 · Government College of Engineering and Technology, Jammu