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

Programs For Practice - Array&String

Uploaded by

nikeshapatel.it
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Programs For Practice - Array&String

Uploaded by

nikeshapatel.it
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Sardar Vallabhbhai Institute of Technology, SVIT

Department of Information Technology


BE – SEMESTER I -A.Y. 2022-23
Course: Programming for Problem Solving (3110003)
Programs for Practice

1. Write a program in C to count the total number of duplicate elements in an array.


2. Write a program in C to count the frequency of each element of an array
3. Write a program in C to separate odd and even integers into separate arrays.
4. Write a program in C to find the transpose of a given matrix
5. Write a program in C to calculate the determinant of a 3 x 3 matrix.
6. Write a program in C to count the total number of words in a string.
7. Write a program in C to compare two strings without using string library
functions
8. Write a program in C to count the total number of alphabets, digits and special
characters in a string.
9. Write a program in C to convert a string to uppercase.
10. Write a C program to count each character in a given string
11. A given string contains the bracket characters '(', ')', '{', '}', '<', ‘>', '[' and ']', Write
a C program to check if the string is valid or not. The input string will be valid
when open brackets and closed brackets are same type of brackets. (Note:
Interesting and important program)
Example:

Input1: Input2:
Enter a string of bracket : ()[]<>{[]} Enter a string of bracket : ([]<>}
Output: Output:
String is valid String is not valid

You might also like