Write C Programs for the following questions.
1. Find max & min from an array of elements
2. Find the index of the a given number in an array
3. Count the number of occurrences of a given element in an array
4. Count frequency of each element in an array
5. Decimal into Octal conversion and Hexa Decimal Conversion
6. Separate out +ve, -ve and 0s from an array
7. Sum of all numbers in array
8. Sum of even numbers in array
9. Print only the prime numbers in array
10. Reverse the array elements
11. Sort array in ascending order
12. Remove the duplicate elements from the array
13. Count zeroes in a matrix
14. Sum of two matrices
15. Sum of all elements in matrix
16. Sum of diagonal elements
17. Find transpose of matrix
18. Find product of two matrices
19. Sum of lower triangular elements
20. Check whether A matrix is Inverse of B Matrix
21. Calculate length of string
22. Find frequency of a character
23. Count number of digits in string
24. No. of digits, alphabets & special characters
25. Print string after deleting vowels
26. Reverse a string and Reverse string with recursion
27. Check if string is palindrome
28. Replace a character in string
29. Convert string into uppercase & lowercase
30. Merge two strings into another string
31. Compare two strings
32. Count number of white spaces
33. Delete the trailing whitespaces from a string.
34. Check whether the two strings are anagrams
35. Check for the strength of the password (if password has more than 8 chars and atleast
1 uppercase, 1 lower case, 1 number and 1 special char then its strong else weak)
Write C Programs for the following questions.
1. Find max & min from an array of elements
2. Find the index of the a given number in an array
3. Count the number of occurrences of a given element in an array
4. Count frequency of each element in an array
5. Decimal into Octal conversion and Hexa Decimal Conversion
6. Separate out +ve, -ve and 0s from an array
7. Sum of all numbers in array
8. Sum of even numbers in array
9. Print only the prime numbers in array
10. Reverse the array elements
11. Sort array in ascending order
12. Remove the duplicate elements from the array
13. Count zeroes in a matrix
14. Sum of two matrices
15. Sum of all elements in matrix
16. Sum of diagonal elements
17. Find transpose of matrix
18. Find product of two matrices
19. Sum of lower triangular elements
20. Check whether A matrix is Inverse of B Matrix
21. Calculate length of string
22. Find frequency of a character
23. Count number of digits in string
24. No. of digits, alphabets & special characters
25. Print string after deleting vowels
26. Reverse a string and Reverse string with recursion
27. Check if string is palindrome
28. Replace a character in string
29. Convert string into uppercase & lowercase
30. Merge two strings into another string
31. Compare two strings
32. Count number of white spaces
33. Delete the trailing whitespaces from a string.
34. Check whether the two strings are anagrams
35. Check for the strength of the password (if password has more than 8 chars and atleast
1 uppercase, 1 lower case, 1 number and 1 special char then its strong else weak)