Pps Imp Questions PDF
Pps Imp Questions PDF
1. What is an array? How to declare and initialize array? explain with examples.
(or)
example
9. How to access the data for structure variable using member operator (“. )? explain with
example .
10. What is an array of structures? Declare a variable as array of structure and initialize it?
(or)
When the array of structures is used? Write syntax for array of structures.
14. Explain the process of declaring and initialize pointers give an example .
15. Write a “c ” function using pointers to exchange the values stored in two locations in the
memory.
16. Explain in details how to access a one dimensional array using pointer. With an
example program
17. What is pointer to pointer? write syntax and explain with example program.
UNIT_4
1. Explain the parameters passing Mechanisms in c-
language with examples.
2. How can we pass the whole array to functions?
Explain with examples programs.
3. Distinguish between library functions and user
defined functions in c and explain with examples.
4. What is recursive function? write syntax for
recursive functions.
5. Explain about malloc() and calloc() dynamic memory
management functions with an example.
6. Explain in brief on allocating memory for arrays in
different data types.
UN
UNIT_5
1. Write a c program to implement linear search
algorithm?
2. Explain linear search example.
3. Give an example for binary search.
4. What is sorting? Explain the bubble sort algorithm
with an example.
5. Write a c program to implement bubble sort
algorithm.
6. Explain the selection sort algorithm with an
example.
7. Explain the insertion sort algorithm with an example.
8. Write a c program to implement insertions sort
algorithm.