You are on page 1of 1

KADI SARVA VISHWAVIDYALAYA

LDRP Institute of Technology and Research, Gandhinagar


Department of Information Technology
CC111-N: Object oriented programming using C++

Assisgnment-1

1. Define Structure and write the general syntax for declaring and accessing

members.
2. Explain the following: i. Nested structures ii. Array of structures.

3. Write a C program that defines a structure employee containing the

details such as empno, empname, department name and salary. The


structure has to store 20 employees in an organization. Use the
appropriate method to define the above details and define a function that
will display the contents?
4. Compare structures and unions.

5. Explain the declaration of pointers and pointer to pointer with examples.

6. Write a C program to swap two numbers using call by address (pointers

or reference) method
7. Explain the Functions for C File Operations.

8. What is File Handling in C? Why Do We Need File Handling in C?

9. What is the difference between text and binary files?

10. With proper examples explain different arithmetic operations on pointers

You might also like