0% found this document useful (0 votes)
28 views1 page

Assignment 2

The document outlines an assignment for the Principles of Programming Using C course, detailing various tasks related to arrays, sorting, strings, recursion, parameter passing techniques, structures, and pointers. Each task includes definitions, programming examples, and specific programming requirements. The assignment aims to enhance understanding and practical skills in C programming.

Uploaded by

Athira Denny
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)
28 views1 page

Assignment 2

The document outlines an assignment for the Principles of Programming Using C course, detailing various tasks related to arrays, sorting, strings, recursion, parameter passing techniques, structures, and pointers. Each task includes definitions, programming examples, and specific programming requirements. The assignment aims to enhance understanding and practical skills in C programming.

Uploaded by

Athira Denny
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

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.

You might also like