0% found this document useful (0 votes)
22 views

imp unit 4 & 5

good

Uploaded by

madhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

imp unit 4 & 5

good

Uploaded by

madhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Unit -4

1. What is pointer? Explain declaration, initialization and accessing of a pointer


variable.
2. Write a C program that access elements of 1 D array using a pointer variable.
3. Write difference between structures and unions w.r.t. memory allocation and
accessing
4. Develop a c program using pointers to compute the sum of all elements
stored in an array
5. Write a syntax to define Union? List out the advantages and disadvantages of
Unions
6. What is dangling memory? Why addition of two pointers is impossible?
7. Write a C program that access elements of 1D array using a pointer variable
8. How to initialize and access pointer variable? Explain pointer to a function
with example
9. Develop a C program to illustrate the creation and usage of enumeration data
type.
10. Write the syntax to define Union? Mention the properties of Union data
type and brief its limitations.

UNIT 5
1. Explain call by value and call by reference with example each.
2. Explain about calling function, called function and actual and formal
arguments with suitable examples.
3. What is recursion? Write a program to find the factorial of a given number
using recursion.
4. Explain the following with respect to functions:
i) Function prototype ii) Function call iii) Returning from function
5. Write a C program to compare two strings without using string handling
functions.
6. How to pass an array to a function in C programming? Explain
7. Write a C program to generate Fibonacci series using recursive functions.
8. Explain the following functions in files:
i) fseek() ii) ftell() iii|) rewind() iv) fopen() v)fclose() vi)foo()
9. Write a C program to copy the content of one file into another file
10. Define file. What are the modes of operations on file?

You might also like