(a) Why do we use functions in C? Explain the user-defined functions…

Previous year question for Computer Programming.

Question

(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 using third variable using functions. (10)

Related pages

More PYQs on User Defined Functions

Open on CachedInfo