Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

VPMP, POLYECHNIC GANDHINAGAR

COMPUTER DEPARTMENT
Assignment: 3 [3320702]

1) Define Function and its types with example.


2) Explain string handling function with its use, syntax and proper example.
3) Give the difference between
a. strcmp Vs strncmp
b. strcpy Vs strncpy
c. strcat Vs strncat
d. strstr Vs strchr
4) Write a program to print following output.
G
Go
Goo
Good
Good-
Good-M
Good-Mo
Good-Mor
Good-Morn
Good-Morni
Good-Mornin
Good-Morning
5) Explain User defined function with its elements and proper example.
6) Explain call by value and call by reference with proper example.
7) Give the difference between call by value and call by reference.
8) Explain Recursion with example.
9) List the advantages and disadvantages of recursion.
10) Write a program to find the factorial of given number using recursion.
11) List the advantages of User defined function.

You might also like