A 2 Z | SRC | LEARN C FROM BASICS |

 

SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
BASIC QUESTIONS
1. Write a C program to enter two numbers and find their sum.
2. Write a C program to enter two numbers and perform all arithmetic
operations.
3. Write a C program to enter length and breadth of a rectangle and find its
perimeter.
4. Write a C program to enter length and breadth of a rectangle and find its
area.
5. Write a C program to enter radius of a circle and find its diameter,
circumference and area.
6. Write a C program to enter length in centimeter and convert it into meter
and kilometer.
7. Write a C program to enter temperature in °Celsius and convert it into
°Fahrenheit.
8. Write a C program to enter temperature in Fahrenheit(°F) and convert it
into Celsius(°C)
9. Write a C program to convert days into years, weeks and days.
10. Write a C program to find power of any number x ^ y.
11. Write a C program to enter any number and calculate its square root.
12. Write a C program to enter two angles of a triangle and find the third
angle.
13. Write a C program to enter base and height of a triangle and find its area.
14. Write a C program to calculate area of an equilateral triangle.
15. Write a C program to enter marks of five subjects and calculate total,
average and percentage.
16. Write a C program to enter P, T, R and calculate Simple Interest.
17. Write a C program to enter P, T, R and calculate Compound Interest.
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
IF-ELSE IF –ELSE QUESTIONS
1. Write a C program to find maximum between two numbers.
2. Write a C program to find maximum between three numbers.
3. Write a C program to check whether a number is even or odd.
4. Write a C program to check whether a year is leap year or not.
5. Write a C program to check whether a number is negative, positive or zero.
6. Write a C program to check whether a number is divisible by 5 and 11 or not.
7. Write a C program to count total number of notes in given amount.
8. Write a C program to check whether a character is alphabet or not.
9. Write a C program to input any alphabet and check whether it is vowel or
consonant.
10. Write a C program to input any character and check whether it is alphabet, digit
or special character.
11. Write a C program to check whether a character is uppercase or lowercase
alphabet.
12. Write a C program to input week number and print week day.
13. Write a C program to input month number and print number of days in that
month.
14. Write a C program to input angles of a triangle and check whether triangle is
valid or not.
15. Write a C program to input all sides of a triangle and check whether triangle is
valid or not.
16. Write a C program to check whether the triangle is equilateral, isosceles or
scalene triangle.
17. Write a C program to find all roots of a quadratic equation.
18. Write a C program to calculate profit or loss.
19. Write a C program to input marks of five subjects Physics, Chemistry, Biology,
Mathematics and Computer. Calculate percentage and grade according to following:
Percentage >= 90% : Grade A
Percentage >= 80% : Grade B
Percentage >= 70% : Grade C
Percentage >= 60% : Grade D
Percentage >= 40% : Grade E
Percentage < 40% : Grade F
20. Write a C program to input basic salary of an employee and calculate its Gross salary
according to following:
Basic Salary <= 10000 : HRA = 20%, DA = 80%
Basic Salary <= 20000 : HRA = 25%, DA = 90%
Basic Salary > 20000 : HRA = 30%, DA = 95%
21. Write a C program to input electricity unit charges and calculate total electricity bill
according to the given condition:
For first 50 units Rs. 0.50/unit
For next 100 units Rs. 0.75/unit
For next 100 units Rs. 1.20/unit
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
For unit above 250 Rs. 1.50/unit
An additional surcharge of 20% is added to the bill
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
SWITCH – CASE QUESTIONS

1. Write a C program to check whether an alphabet is vowel or consonant
using switch case.
2. Write a C program to print day of week name using switch case.
3. Write a C program print total number of days in a month using switch
case.
4. Write a C program to find maximum between two numbers using switch
case.
5. Write a C program to check whether a number is even or odd using switch
case.
6. Write a C program to find roots of a quadratic equation using switch case.
7. Write a C program to create Simple Calculator using switch case.
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
 
CONDITIONAL OPERATOR QUESTIONS

1. Write a C program to find maximum between two numbers using
conditional/ternary operator.
2. Write a C program to find maximum between three numbers using
conditional/ternary operator.
3. Write a C program to check whether a number is even or odd using
conditional/ternary operator.
4. Write a C program to check whether year is leap year or not using
conditional/ternary operator.
5. Write a C program to check whether character is an alphabet or not using
conditional/ternary operator.
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
int main()
{
 int num1, num2, num3, max;
 /*
 * Read three numbers from user
 */
 printf("Enter three numbers: ");
 scanf("%d %d %d", &num1, &num2, &num3);
 /* Finds maximum between three */
 max = (num1>num2 && num1>num3) ? num1 :
 (num2>num3) ? num2 : num3;
 printf("\nMaximum between %d, %d and %d = %d", num1, num2, num3, max);
 return 0;
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
LOOPS QUESTIONS
1. Write a C program to print all natural numbers from 1 to n. - using while
loop
2. Write a C program to print all natural numbers in reverse (from n to 1). -
using while loop
3. Write a C program to print all alphabets from a to z. - using while loop
4. Write a C program to print all even numbers between 1 to 100. -
using while loop
5. Write a C program to print all odd number between 1 to 100.
6. Write a C program to print sum of all even numbers between 1 to n.
7. Write a C program to print sum of all odd numbers between 1 to n.
8. Write a C program to print table of any number.
9. Write a C program to enter any number and calculate sum of all natural
numbers between 1 to n.
10. Write a C program to find first and last digit of any number.
11. Write a C program to count number of digits in any number.
12. Write a C program to calculate sum of digits of any number.
13. Write a C program to calculate product of digits of any number.
14. Write a C program to swap first and last digits of any number.
15. Write a C program to find sum of first and last digit of any number.
16. Write a C program to enter any number and print its reverse.
17. Write a C program to enter any number and check whether the number is
palindrome or not.
18. Write a C program to find frequency of each digit in a given integer.
19. Write a C program to enter any number and print it in words.
20. Write a C program to print all ASCII character with their values.
21. Write a C program to find power of any number using for loop.
22. Write a C program to enter any number and print all factors of the number.
23. Write a C program to enter any number and calculate its factorial.
24. Write a C program to find HCF (GCD) of two numbers.
25. Write a C program to find LCM of two numbers.
26. Write a C program to check whether a number is Prime number or not.
27. Write a C program to check whether a number is Armstrong number or
not.
28. Write a C program to check whether a number is Perfect number or not.
29. Write a C program to check whether a number is Strong number or not.
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
30. Write a C program to print all Prime numbers between 1 to n.
31. Write a C program to print all Armstrong numbers between 1 to n.
32. Write a C program to print all Perfect numbers between 1 to n.
33. Write a C program to print all Strong numbers between 1 to n.
34. Write a C program to enter any number and print its prime factors.
35. Write a C program to find sum of all prime numbers between 1 to n.
36. Write a C program to print Fibonacci series up to n terms.
37. Write a C program to find one's complement of a binary number.
38. Write a C program to find two's complement of a binary number.
39. Write a C program to convert Binary to Octal number system.
40. Write a C program to convert Binary to Decimal number system.
41. Write a C program to convert Binary to Hexadecimal number system.
42. Write a C program to convert Octal to Binary number system.
43. Write a C program to convert Octal to Decimal number system.
44. Write a C program to convert Octal to Hexadecimal number system.
45. Write a C program to convert Decimal to Binary number system.
46. Write a C program to convert Decimal to Octal number system.
47. Write a C program to convert Decimal to Hexadecimal number system.
48. Write a C program to convert Hexadecimal to Binary number system.
49. Write a C program to convert Hexadecimal to Octal number system.
50. Write a C program to convert Hexadecimal to Decimal number system.
51. Write a C program to print Pascal triangle upto n rows.
52. Star pattern programs - Write a C program to print the given star patterns.
53. Number pattern programs - Write a C program to print the given number
patterns.
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
PATTERN QUESTIONS ( NESTED LOOPS QUESTIONS)
Square number patterns
11111
11111
11111
11111
11111
Number pattern 1
11111
00000
11111
00000
11111
Number pattern 2
01010
01010
01010
01010
01010
Number pattern 3
11111
10001
10001
10001
11111
Number pattern 4
11111
11111
11011
11111
11111
Number pattern 5
10101
01010
10101
01010
10101
Number pattern 6
11011
11011
00000
11011
11011
Number pattern 7
10001
01010
00100
01010
10001
Number pattern 8
01110
10001
10001
10001
01110
Number pattern 9
11111
22222
33333
44444
55555
Number pattern 10
12345
12345
12345
12345
12345
Number pattern 11
12345
23456
34567
45678
56789
Number pattern 12
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
Number pattern 13
55555
54444
54333
54322
54321
Number pattern 14
12345
23455
34555
45555
55555
Number pattern 15
12345
23451
34521
45321
54321
Number pattern 16
12345
21234
32123
43212
54321
Number pattern 17
5 5 5 5 5 5 5 5 5
5 4 4 4 4 4 4 4 5
5 4 3 3 3 3 3 4 5
5 4 3 2 2 2 3 4 5
5 4 3 2 1 2 3 4 5
5 4 3 2 2 2 3 4 5
5 4 3 3 3 3 3 4 5
5 4 4 4 4 4 4 4 5
5 5 5 5 5 5 5 5 5
Number pattern 18
1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9
Number pattern 19
Triangle easy number patterns
1
2 2
333
4444
55555
Number pattern 20
55555
4444
333
2 2
1
Number pattern 21
11111
2222
333
4 4
5
Number pattern 22
5
4 4
333
2222
11111
Number pattern 23
1
1 2
123
1234
12345
Number pattern 24
12345
1234
123
1 2
1
Number pattern 25
1
2 1
321
4321
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
54321
Number pattern 26
54321
4321
321
2 1
1
Number pattern 27
5
5 4
543
5432
54321
Number pattern 28
54321
5432
543
5 4
5
Number pattern 29
5
4 5
345
2345
12345
Number pattern 30
12345
2345
345
4 5
5
Number pattern 31
1
2 3
345
4567
56789
Number pattern 32
56789
4567
345
2 3
1
Number pattern 33
13579
3579
579
7 9
9
Number pattern 34
Triangle 0,1 easy patterns
1
1 0
101
1010
10101
Number pattern 35
1
0 0
111
0000
11111
Number pattern 36
1
0 1
010
1010
10101
Number pattern 37
1
1 1
101
1001
11111
Number pattern 38
Triangle hard number patterns
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
1
123
12345
1234567
123456789
Number pattern 39
1
2 4
135
2468
13579
Number pattern 40
1
131
13531
1357531
135797531
Number pattern 41
2
242
24642
2468642
2468108642
Number pattern 42
1
121
12321
1234321
123454321
Number pattern 43
1
3 2
4543
567654
67898765
Number pattern 44
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
Number pattern 45
1
2 1
123
4321
12345
Number pattern 46
1
2 3
4567
89123456
7891234567891234
Number pattern 47
1 1
12 21
123 321
1234 4321
1234554321
Number pattern 48
1
2 6
3 7 10
4 8 11 13
5 9 12 14 15
Number pattern 49
1
2 4
7 11 16
22 29 37 46
56 67 79 92 106
Number pattern 50
1
3 2
4 5 6
10 9 8 7
11 12 13 14 15
Number pattern 51
1
2 2
333
2222
11111
Number pattern 52
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
N = 12345
12345
1234
123
1 2
1
Number pattern 53
N = 12345
12345
2345
345
4 5
5
Number pattern 54
Diamond number patterns
1
1 2
123
1234
12345
1234
123
1 2
1
Number pattern 55
1
123
12345
1234567
123456789
1234567
12345
123
1
Number pattern 56
1
121
12321
1234321
123454321
1234321
12321
121
1
Number pattern 57
Diamond number pattern with
star border
*
*1*
*121*
*12321*
*1234321*
*123454321*
*1234321*
*12321*
*121*
*1*
*
Number pattern 58
Tricky number pattern
1 1
2 2
 3 3
 4 4
 5
 4 4
 3 3
2 2
1 1
Number pattern 59
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
List of various star
pattern series and
solution in C
programming:
*****
*****
*****
*****
*****
1. Square
*****
* *
* *
* *
*****
2. Hollow Square
 *****
 *****
 *****
*****
*****
3. Rhombus
 *****
 * *
 * *
* *
*****
4. Hollow Rhombus
*****
*****
 *****
 *****
 *****
5. Mirrored Rhombus
*****
* *
 * *
 * *
 *****
6. Hollow mirrored Rhombus
*
**
***
****
*****
7. Right triangle
*
**
* *
* *
*****
8. Hollow right triangle
 *
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
 **
 ***
****
*****
9. Mirrored
right triangle
 *
 **
 * *
* *
*****
10. Hollow mirrored
right triangle
*****
****
***
**
*
11. Inverted
right triangle
*****
* *
* *
**
*
12. Hollow inverted
right triangle
*****
****
 ***
 **
 *
13. Inverted mirrored
right triangle
*****
* *
 * *
 **
 *
14. Hollow inverted
mirrored right triangle
 *
 ***
 *****
*******
*********
15. Pyramid
(Equilateral triangle)
 *
 * *
 * *
* *
*********
16. Hollow Pyramid
*********
*******
 *****
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
 ***
 *
17. Inverted Pyramid
*********
* *
 * *
 * *
 *
18. Hollow inverted pyramid
*
**
***
****
*****
****
***
**
*
19. Half diamond
 *
 **
 ***
****
*****
****
 ***
 **
 *
20. Mirrored
half diamond
 *
 ***
 *****
*******
*********
*******
 *****
 ***
 *
21. Diamond
**********
**** ****
*** ***
** **
* *
* *
** **
*** ***
**** ****
**********
22. Hollow diamond
*****
 ****
 ***
 **
 *
 **
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
 ***
 ****
*****
23. Right Arrow
 *****
 ****
 ***
**
*
**
 ***
 ****
 *****
24. Left arrow
 +
 +
 +
 +
+++++++++
 +
 +
 +
 +
25. Plus Star pattern
* *
* *
 * *
 * *
 *
 * *
 * *
* *
* *
26. X Star pattern
 *****
*****
*******
*******
*********
*********
****************
***
****************
*
 
***************
 *************
 ***********
 *********
 *******
 *****
 ***
 *
27. Heart Star pattern 1
 *****
*****
*******
*******
SRI RAAM COMPUTER EDUCATION (An ISO 9001:2008 Certified Institute)
Address: B-33, Laxmi Nagar, Delhi – 110092. Phones: 011-22528440, 9718277387, 9811631557.
Web: www.srceducation.in E-Mail: info@srceducation.in
*********
*********
*****Codeforwin*
***
****************
*
 
***************
 *************
 ***********
 *********
 *******
 *****
 ***
 *
28. Heart Star pattern 2

ARRAY QUESTIONS
1. Write a C program to read and print elements of array. - using recursion.
2. Write a C program to print all negative elements in an array.
3. Write a C program to find sum of all array elements. - using recursion.
4. Write a C program to find maximum and minimum element in an array. -using recursion.
5. Write a C program to find second largest element in an array.
6. Write a C program to count total number of even and odd elements in anarray.
7. Write a C program to count total number of negative elements in an array.
8. Write a C program to copy all elements from an array to another array.
9. Write a C program to insert an element in an array.
10. Write a C program to delete an element from an array at specified position.
11. Write a C program to print all unique elements in the array.
12. Write a C program to count total number of duplicate elements in an array.
13. Write a C program to delete all duplicate elements from an array.
14. Write a C program to count frequency of each element in an array.
15. Write a C program to merge two array to third array.
16. Write a C program to find reverse of an array.
17. Write a C program to put even and odd elements of array in two separate
array.
18. Write a C program to search an element in an array.
19. Write a C program to sort array elements in ascending order.
20. Write a C program to sort array elements in descending order.
21. Write a C program to sort even and odd elements of array separately.
22. Write a C program to add two matrices.
23. Write a C program to subtract two matrices.
24. Write a C program to perform Scalar matrix multiplication.
25. Write a C program to multiply two matrices.
26. Write a C program to check whether two matrices are equal or not.
27. Write a C program to find sum of main diagonal elements of a matrix.
28. Write a C program to find sum of minor diagonal elements of a matrix.
29. Write a C program to find sum of each row and column of a matrix.
30. Write a C program to interchange diagonals of a matrix.
31. Write a C program to find upper triangular matrix.
32. Write a C program to find lower triangular matrix.
33. Write a C program to find sum of upper triangular matrix.
34. Write a C program to find transpose of a matrix.
35. Write a C program to find determinant of a matrix.
36. Write a C program to check Identity matrix.
37. Write a C program to check Sparse matrix.
38. Write a C program to check Symmetric matrix.

STRINGS QUESTIONS
1. Write a C program to find length of a string.
2. Write a C program to copy one string to another string.
3. Write a C program to concatenate two strings.
4. Write a C program to compare two strings.
5. Write a C program to convert lowercase string to uppercase.
6. Write a C program to convert uppercase string to lowercase.
7. Write a C program to toggle case of each character of a string.
8. Write a C program to find total number of alphabets, digits or special character in a string.
9. Write a C program to count total number of vowels and consonants in a string.
10. Write a C program to count total number of words in a string.
11. Write a C program to find reverse of a string.
12. Write a C program to check whether a string is palindrome or not.
13. Write a C program to reverse order of words in a given string.
14. Write a C program to find first occurrence of a character in a given string.
15. Write a C program to find last occurrence of a character in a given string.
16. Write a C program to search all occurrences of a character in given string.
17. Write a C program to count occurrences of a character in given string.
18. Write a C program to find highest frequency character in a string.
19. Write a C program to find lowest frequency character in a string.
20. Write a C program to count frequency of each character in a string.
21. Write a C program to remove first occurrence of a character from string.
22. Write a C program to remove last occurrence of a character from string.
23. Write a C program to remove all occurrences of a character from string.
24. Write a C program to remove all repeated characters from a given string.
25. Write a C program to replace first occurrence of a character with another in a string.
26. Write a C program to replace last occurrence of a character with another in a string.
27. Write a C program to replace all occurrences of a character with another in a string.
28. Write a C program to find first occurrence of a word in a given string.
29. Write a C program to find last occurrence of a word in a given string.
30. Write a C program to search all occurrences of a word in given string.
31. Write a C program to count occurrences of a word in a given string.
32. Write a C program to remove first occurrence of a word from string.
33. Write a C program to remove last occurrence of a word in given string.
34. Write a C program to remove all occurrence of a word in given string.
35. Write a C program to trim leading white space characters in a string.
36. Write a C program to trim trailing white space characters in a string.
37. Write a C program to trim both leading and trailing white space characters in a string.
38. Write a C program to remove all extra blank spaces from a given string.

FUNCTIONS QUESTIONS
1. Write a C program to find cube of any number using function.
2. Write a C program to find diameter, circumference and area of circle using functions.
3. Write a C program to find maximum and minimum between two numbers using functions.
4. Write a C program to check whether a number is even or odd using functions.
5. Write a C program to check whether a number is prime, Armstrong or perfect number using functions.
6. Write a C program to find all prime numbers between given interval using functions.
7. Write a C program to print all strong numbers between given interval using functions.
8. Write a C program to print all armstrong numbers between given interval using functions.
9. Write a C program to print all perfect numbers between given interval using functions.
10. Write a C program to find power of any number using recursion.
11. Write a C program to print all natural numbers between 1 to n using recursion.
12. Write a C program to print all even or odd numbers in given range using recursion.
13. Write a C program to find sum of all natural numbers between 1 to n using recursion.
14. Write a C program to find sum of all even or odd numbers in given range using recursion.
15. Write a C program to find reverse of any number using recursion.
16. Write a C program to check whether a number is palindrome or not using recursion.
17. Write a C program to find sum of digits of a given number using recursion.
18. Write a C program to find factorial of any number using recursion.
19. Write a C program to generate nth Fibonacci term using recursion.
20. Write a C program to find GCD (HCF) of two numbers using recursion.
21. Write a C program to find LCM of two numbers using recursion.
22. Write a C program to display all array elements using recursion.
23. Write a C program to find sum of elements of array using recursion.
24. Write a C program to find maximum and minimum elements in array using recursion.


C-EXERCISES=====C-EXERCISES=====C-EXERCISES=====C-EXERCISES=====C-EXERCISES=====C-EXERCISES=====C-EXERCISES=====C-EXERCISES=====C-EXCERCIS

ARRAY QUESTIONS
1. Write a C program to read and print elements of array. - using recursion.
2. Write a C program to print all negative elements in an array.
3. Write a C program to find sum of all array elements. - using recursion.
4. Write a C program to find maximum and minimum element in an array. -
using recursion.
5. Write a C program to find second largest element in an array.
6. Write a C program to count total number of even and odd elements in an array.
7. Write a C program to count total number of negative elements in an array.
8. Write a C program to copy all elements from an array to another array.
9. Write a C program to insert an element in an array.
10. Write a C program to delete an element from an array at specified position.
11. Write a C program to print all unique elements in the array.
12. Write a C program to count total number of duplicate elements in an array.
13. Write a C program to delete all duplicate elements from an array.
14. Write a C program to count frequency of each element in an array.
15. Write a C program to merge two array to third array.
16. Write a C program to find reverse of an array.
17. Write a C program to put even and odd elements of array in two separate array.
18. Write a C program to search an element in an array.
19. Write a C program to sort array elements in ascending order.
20. Write a C program to sort array elements in descending order.
21. Write a C program to sort even and odd elements of array separately.
22. Write a C program to add two matrices.
23. Write a C program to subtract two matrices.
24. Write a C program to perform Scalar matrix multiplication.
25. Write a C program to multiply two matrices.
26. Write a C program to check whether two matrices are equal or not.
27. Write a C program to find sum of main diagonal elements of a matrix.
28. Write a C program to find sum of minor diagonal elements of a matrix.
29. Write a C program to find sum of each row and column of a matrix.
30. Write a C program to interchange diagonals of a matrix.
31. Write a C program to find upper triangular matrix.
32. Write a C program to find lower triangular matrix.
33. Write a C program to find sum of upper triangular matrix.
34. Write a C program to find transpose of a matrix.
35. Write a C program to find determinant of a matrix.
36. Write a C program to check Identity matrix.
37. Write a C program to check Sparse matrix.
38. Write a C program to check Symmetric matrix.

C-EXERCISES=====C-EXERCISES=====C-EXERCISES=====C-EXERCISES=====C-EXERCISES=====C-EXERCISES=====C-EXERCISES=====C-EXERCISES=====C-EXCERCIS

Comments

Popular posts from this blog

Movie Review