About Me

My photo
Vijayapur, Karnataka, India
Let us learn together!

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:

AI Prompts to get source code for IDT projects

AI Prompt-1 Design and develop web application that read student roll number, name, USN and Department and store in Browsers memory. Next co...