About Me

My photo
Vijayapur, Karnataka, India
I am interested in Teaching.

Friday 8 November 2019

Questions on Arrays and Strings as a part of Assignment-2 CPS for I Sem G Division Civil Students

What is one dimensional array?Discuss its declaration and initialization with syntax and examples.

What is two dimensional array?Discuss its declaration and initialization with syntax and examples.

What is string ?Discuss its declaration and initialization with syntax and examples.

Discuss following string handling (manipulation) functions with explanation, syntax and examples.

1. strlen()
2. strcpy()
3. strncpy()
4. strcat()
5. strncat()
6. strcmp()
7. strncmp()
8. strupr()
9. strler()
10.strupr()


Programs on 1D array:

Write a c program to implement implement linear search technique.

Write a c program to implement implement binary search technique.

Write a c program to implement implement bubble sort technique.

Write a c program to find largest and lowest of N numbers.

Write a c program to find sum and average of N integers using 1D array.

Programs on 2D array:

Write a c program to find addition of two matrices.

Write a c program to find multiplication of two matrices.


Programs on strings:

Write a c program to find length of a string without using built in function.

Write a c program to copy one string into another string variable without using built in function.

Write a c program to concatenate one string to another string without using built in function.

Write a c program to reverse a string without using a built in function.








No comments:

GCD of two numbers and its application...

The greatest common divisor (gcd) of two numbers is the largest positive integer that divides both numbers without leaving a remainder. The ...