DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING
Assignment -2
Subject: Principles of Programming Using C Sub Code: BPOPS103
Section: IS – L and M
Faculty: BYREGOWDA B K , Muthuramalingam B
1. Define an array and elaborate to declare and initialize 1 D and 2D-arrays with
examples.
2. Create a C program to search an array element using binary search method on
integers with flow chart.
3. List and Explain briefly what operations are performed on arrays.
4. Define sorting. Write a C program to sort the array elements using bubble sort.
5. Define String. Explain Different string manipulation functions with
programming example
6. Define Recursion. Write a C program to factorial of a number using recursion
7. .Explain with examples of Call by value and Call by reference (parameter passing
techniques) .
8. Implement structures to read, write and compute average- marks of the
students, list the students scoring above and below the average marks for a class
of N students.
9. Write a program to read a sentence and then count the number of words in the
sentence.
10. Write functions to implement string operations such as compare, concatenate,
and find string length. Use the parameter passing techniques.
11. Define a pointer. Discuss the syntax of pointer declaration and initialization.
Write a program to add 2 integers using pointers.