About Me

My photo
Vijayapur, Karnataka, India
I am interested in Teaching.

Friday 13 October 2017

PCD Assignment-2 (Part-II) on Functions

1. Discuss the three elements of user defined functions with syntax and example.

2. Explain actual and formal parameters with programming example.

3. Discuss the following with programming examples.
    1. Call by value
    2. Call by address (reference)

4. What is recursive function? write recursive function to find factorial of 'n'.

5. Discuss the storage classes used in C with examples.
   (automatic, global, static, register)

6. Write user defined function to swap the contents of two variables. (call by address)

7. What is structure? Discuss its declaration and initialization with syntax examples.

8. Write C program to read and display students information(roll no, name, total, avg) by using structure variable.

9. Write a c program to read and display 'n' students information(roll no, name, total, avg) using structure and arrays.



|| Happy Deepawali ||

No comments:

GCD of two numbers and its application...

The greatest common divisor (gcd) of two numbers is the largest positive integer that divides both numbers without leaving a remainder. The ...