Professional Documents
Culture Documents
Important Questions
Important Questions
Important Questions
IMPORTANT QUESTIONS
UNIT – III
1. Write a Program that uses a function to sort the elements given by the user using
selection Sort.
2. Write a Program that uses a function to sort the elements given by the user using bubble
Sort.
3. Explain about the Parameter passing in functions with examples.
4. Can you pass an array to a function? Justify your answer with example.
UNIT – IV
UNIT – V
1. Define a pointer. Explain about the declaration, definition and accessing a pointer with
syntax and example.
2. What are the arithmetic operations that can be performed on pointers?
3. Explain about the void pointer with an example.
4. Why do you need a NULL pointer? With an example.
5. Explain about the wild pointer with example.
6. Why pointers should have data types when their size is always 4 bytes (in a 32-bit
machine), irrespective of the variable they are pointing to?
7. What are self-referential structures?.Explain with an example.
8. Explain about the notion of linked list with an example.
9. What is a file? Write the different types of files.
10. Explain about the different File functions with syntax and examples.
11. Write a C program to copy the content of one file to another file.
12. Write a C Program to count the vowels, constant, spaces, tabs, special symbols and
number of lines in a file.