K. S.
SCHOOL OF ENGINEERING AND MANAGEMENT,
BANGALORE – 560109
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
QUESTION BANK
COURSE: PROGRAMMING IN C
COURSE CODE: 1BEIT105
MODULE 3
1. Define an array. How a single-dimension and two-dimensional arrays are declared and
initialized? Illustrate with suitable examples.
2. Explain the concept of Single-Dimension array with syntax of initialization and declaration suitable
examples.
3. Illustrate the concept of Two-Dimension array with syntax of initialization and declaration suitable
examples.
4. Define an array. How do we initialize pointer to an array with suitable example.
5. Define variable length array. Illustrate how variable length array is different from static array.
6. Develop a C program to swap the values of two integer variables using pointers.
7. Define a pointer. How to declare and initialize pointers in C. Explain accessing array elements using
pointer.
8. Show with suitable program how single dimensional array can be passed to a function.
9. Develop a C program that reads N integers, stores them in an array and calculates the sum of all array
elements.
10. Define strings. List and explain all the string functions with suitable examples.
11. Define pointers. List and explain pointer operators with suitable examples.
12. Explain multiple indirections with suitable examples.