You are on page 1of 18

Ex -1

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 Calculate Electricity bill for given Units.
4. Write a program to enter value in Kilogram & Convert into Gram.
5. Write a C program to enter length and breadth of a rectangle and find its perimeter.
6. Write a C program to enter length and breadth of a rectangle and find its area.
7. Write a C program to enter radius of a circle and find its diameter, circumference and area.
8. Write a C program to enter length in centimeter and convert it into meter and kilometer.
9. Write a C program to enter temperature in Celsius and convert it into Fahrenheit.
10. Write a C program to enter temperature in Fahrenheit and convert to Celsius

Ex-2
11. Write a C program to enter marks of five subjects and calculate total, average and percentage.
12. Write a C program to enter P, T, R and calculate Simple Interest.
13. Write a C program to convert days into years, weeks and days.
14. Write a C program to find power of any number x ^ y.
Basic Programs

15. Write a C program to enter any number and calculate its square root.
16. Write a C program to enter two angles of a triangle and find the third angle.
17. Write a C program to enter base and height of a triangle and find its area.
18. Write a C program to calculate area of an equilateral triangle.
19. Write a C program to enter P, T, R and calculate Compound Interest.
20. C program to swap two numbers without using third variable.
21. C program to swap two numbers using third variable.
22. C program to print ASCII value of entered character.

Ex-3
23. In a town, the percentage of men is 52. The percentage of total literacy is 48. If total percentage of literate men is
35 of the total population, write a program to find the total number of illiterate men and women if the population
of the town is 80,000.
24. Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent
allowance is 20% of basic salary. Write a program to calculate his gross salary.
25. If a five-digit number is input through the keyboard, write a program to calculate the sum of its digits.
26. If a five-digit number is input through the keyboard, write a program to reverse the number
27. A cashier has currency notes of denominations 10, 50 and 100. If the amount to be withdrawn is input through the
keyboard in hundreds, find the total number of currency notes of each denomination the cashier will have to give
to the withdrawer.
28. If a five-digit number is input through the keyboard, write a program to print a new number by adding one to each
of its digits. For example if the number that is input is 12391 then the output should be displayed as 23402.
29. Write a C program to find quotient and remainder.
30. Write a C program to calculate sum of all digit for given 4 digit no.
31. Write a C program to reverse for given 4 digit no.
32. C program to print size of variables using sizeof() operator.
33. Write a C program to perform input/output of all basic data types.
Ex-4
34. Write a C program to find maximum between two numbers.
35. Write a C program to check whether a number is even or odd
36. Write a C program to check whether a year is leap year or not.
37. Write a C program to calculate profit and loss on a transaction.
38. Write a C program to input angles of a triangle and check whether triangle is valid or not.
39. Write a C Program to find given 4 digit no is palindrome or not.
40. C Program to Find the Number of Integers Divisible by 5

Ex-5

41. Write a C program to find maximum between three numbers.


42. Write a C program to check whether a number is negative, positive or zero.
43. Write a C program to check whether a number is divisible by 5 and 11 or not.
44. Write a C program to check whether a character is alphabet or not.
45. Write a C program to input any alphabet and check whether it is vowel or consonant.
46. Write a C program to check whether a character is uppercase or lowercase alphabet.
47. Write a C program to input week number and print week day.
48. Write a C program to input month number and print number of days in that month.
49. Write a C program to count total number of notes in given amount.
50. Write a C program to input all sides of a triangle and check whether triangle is valid or not.
51. Write a C program to check whether the triangle is equilateral, isosceles or scalene triangle.
52. Write a C program to find all roots of a quadratic equation.
53. 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
54. 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%
55. 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
For unit above 250 Rs. 1.50/unit
An additional surcharge of 20% is added to the bill
Ex-6
56. Any character is entered through the keyboard, write a program to determine whether the
character entered is a capital letter, a small case letter, a digit or a special symbol.
The following table shows the range of ASCII values for various characters.

Characters ASCII values

A–Z 65 - 90
a–z 97 - 122
0–9 48 - 57
special symbols 0 - 47, 58 - 64, 91 - 96, 123 – 127
57. An Insurance company follows following rules to calculate premium.
(1) If a person’s health is excellent and the person is between 25 and 35 years of age and
lives in a city and is a male then the premium is Rs. 4 per thousand and his policy amount
cannot exceed Rs. 2 lakhs.
(2) If a person satisfies all the above conditions except that the sex is female then the
premium is Rs. 3 per thousand and her policy amount cannot exceed Rs. 1 lakh.
(3) If a person’s health is poor and the person is between 25 and 35 years of age and lives in
a village and is a male then the premium is Rs. 6 per thousand and his policy cannot exceed
Rs. 10,000.
(4) In all other cases the person is not insured.
Write a program to output whether the person should be insured or not, his/her premium
rate and maximum amount for which he/she can be insured.
58. A certain grade of steel is graded according to the following conditions:
(i) Hardness must be greater than 50
(ii) Carbon content must be less than 0.7
(iii) Tensile strength must be greater than 5600

The grades are as follows:

Grade is 10 if all three conditions are met


Grade is 9 if conditions (i) and (ii) are met
Grade is 8 if conditions (ii) and (iii) are met
Grade is 7 if conditions (i) and (iii) are met
Grade is 6 if only one condition is met
Grade is 5 if none of the conditions are met

Write a program, which will require the user to give values of hardness, carbon content and
tensile strength of the steel under consideration and output the grade of the steel.
59. A library charges a fine for every book returned late. For first 5 days the fine is 50 paise,
for 6-10 days fine is one rupee and above 10 days fine is 5 rupees. If you return the book
after 30 days your membership will be cancelled. Write a program to accept the number of
days the member is late to return the book and display the fine or the appropriate message.
60. In a company, worker efficiency is determined on the basis of the time required for a
worker to complete a particular job. If the time taken by the worker is between 2 – 3 hours,
then the worker is said to be highly efficient. If the time required by the worker is between
3 – 4 hours, then the worker is ordered to improve speed. If the time taken is between 4 – 5
hours, the worker is given training to improve his speed, and if the time taken by the worker
is more than 5 hours, then the worker has to leave the company. If the time taken by the
worker is input through the keyboard, find the efficiency of the worker.
61. A university has the following rules for a student to qualify for a degree with A as the main
subject and B as the subsidiary subject:
(a) He should get 55 percent or more in A and 45 percent or more in B.
(b) If he gets than 55 percent in A he should get 55 percent or more in B. However, he
should get at least 45 percent in A.
(c) If he gets less than 45 percent in B and 65 percent or more in A he is allowed to
reappear in an examination in B to qualify.
(d) In all other cases he is declared to have failed.

Write a program to receive marks in A and B and Output whether the student has passed,
failed or is allowed to reappear in B.
62. The policy followed by a company to process customer orders is given by the following
rules:

(a) If a customer order is less than or equal to that in stock and has credit is OK, supply has
requirement.
(b) If has credit is not OK do not supply. Send him intimation.
(c) If has credit is Ok but the item in stock is less than has order, supply what is in stock.
Intimate to him data the balance will be shipped.

Write a C program to implement the company policy.

Ex-7
63. Write a C program to find maximum between two numbers Using Switch case
64. Write a C program to check whether a number is even or odd Using Switch case
65. Write a C program to check whether a year is leap year or not Using Switch case
66. Write a C program to calculate profit and loss on a transaction Using Switch case
67. Write a C program to input angles of a triangle and check whether triangle is valid or not
Using Switch case
68. Write a C Program to find given 4 digit no is palindrome or not Using Switch case
69. C Program to Find the Number of Integers Divisible by 5 Using Switch case
70. Write a C program to find given character is vowel or not Using Switch case

Ex-8
71. Write a C program to print all natural numbers from 1 to n.- using while loop
72. Write a C program to print all natural numbers in reverse (from n to 1). - using while
loop
73. Write a C program to print all alphabets from a to z. - using while loop
74. Write a C program to print all even numbers between 1 to 100. - using while loop
75. Write a C program to print all odd number between 1 to 100.
76. Write a C program to print sum of all even numbers between 1 to n.
77. Write a C program to print sum of all odd numbers between 1 to n.
78. Write a C program to print table of any number.
79. Write a C program to enter any number and calculate sum of all natural numbers
between 1 to n.
80. Write a C program to find first and last digit of any number.
81. Write a C program to count number of digits in any number.
82. Write a C program to calculate sum of digits of any number.
83. Write a C program to calculate product of digits of any number.
84. Write a C program to swap first and last digits of any number.
85. Write a C program to enter any number and print its reverse.
86. Write a C program to enter any number and check whether the number is palindrome or
not.
Ex-9

87. Write a C program to find frequency of each digit in a given integer.


88. Write a C program to find power of any number using for loop.
89. Write a C program to enter any number and print all factors of the number.
90. Write a C program to enter any number and calculate its factorial.
91. Write a C program to find HCF (GCD) of two numbers.
92. Write a C program to find LCM of two numbers.
93. Write a C program to check whether a number is Prime number or not.
94. Write a C program to check whether a number is Armstrong number or not.
95. Write a C program to check whether a number is Perfect number or not.
96. Write a C program to check whether a number is Strong number or not.
97. Write a C program to print all Prime numbers between 1 to n.
98. Write a C program to print all Armstrong numbers between 1 to n.
99. Write a C program to print all Perfect numbers between 1 to n.
100. Write a C program to print all Strong numbers between 1 to n.
101. Write a C program to enter any number and print its prime factors.
102. Write a program to calculate overtime pay of 10 employees. Overtime is paid at the
rate of Rs. 12.00 per hour for every hour worked above 40 hours. Assume that employees
do not work for fractional part of an hour.
103. Two numbers are entered through the keyboard. Write a program to find the value of
one number raised to the power of another.
104. Write a program to print all the ASCII values and their equivalent characters using a
while loop. The ASCII values vary from 0 to 255.
105. Write a program to print out all Armstrong numbers between 1 and 500. If sum of
cubes of each digit of the number is equal to the number itself, then the number is
called an Armstrong number. For example, 153 = ( 1 * 1 * 1 ) + ( 5 * 5 * 5 ) + ( 3 * 3 * 3 )
106. Write a program for a matchstick game being played between the computer and a
user. Your program should ensure that the computer always wins. Rules for the game are
as follows:
− There are 21 matchsticks.
− The computer asks the player to pick 1, 2, 3, or 4 matchsticks.
− After the person picks, the computer does its picking.
− Whoever is forced to pick up the last matchstick loses the game.
107. Write a program to find the range of a set of numbers. Range is the difference
between the smallest and biggest number in the list
108. Write a program to fill the entire screen with a smiling face. The smiling face has an
ASCII value 1.
Ex-10
109. Write a program to add first seven terms of the following series using a for loop:

1/1! + 2/2! + 3/3! + .............


110. Write a program to generate all combinations of 1, 2 and 3 using for loop.
111. Write a program to print the multiplication table of the number entered by the user.
The table should get displayed in the following form.
29 * 1 = 29
29 * 2 = 58
112. A machine is purchased which will produce earning of Rs. 1000 per year while it lasts.
The machine costs Rs. 6000 and will have a salvage of Rs. 2000 when it is condemned. If
12 percent per annum can be earned on alternate investments what would be the
minimum life of the machine to make it a more attractive investment compared to
alternative investment?
113. Write programs to produce the following output:

**** * *******
* * ****
*** *** *****
** ** ***
** ***** ***
*** *** **
* ******* *
**** **** *

* *
* * ******* * *
***
* * *
** *** ***** * * * * *****
* * * * *
*** ***** *** * * * * *******
* * *
**** ******* * * * *******
*_
*****
***
*
***** *****
** ** * *
***** * * * * *
***** ** ** * *
***** ***** *****
*****
*****
*****
*****
***** *****
***** *****
***** *****
*****
* * *****
* * *****
* * *****
***** * *
* *
* *
*****
12345 12345
1234 2345
123 345
12 45
1 5

54321 54321
4321 5432
321 543
21 54
1 5

1 5
12 45
123 345
1234 2345
12345 12345

1 5
21 54
321 543
4321 5432
54321 54321

1 5
22 44
333 333
4444 2222
55555 11111

55555 11111
4444 2222
333 333
22 44
1 5

12345
1234567
4321
12345
123
123
21
1
1
13579
1
3579
01
579
101
79
0101
9

1 55555
2 4 45555
1 3 5 34555
2 4 6 8 23455
1 3 5 7 9 12345

1
1
10
23
101
456
1010
78910
10101

1
1
2 6
123
3 7 10
12345
4 8 11 13
1234567
5 9 12 14 15

12344321
1
123**321
2 3 4
12****21
5 6 7 8 9
1******1

1 2 3 4 5 6 7 8 9 10
36 37 38 39 40 41 42 43 44 11
35 64 65 66 67 68 69 70 45 12
34 63 84 85 86 87 88 71 46 13
33 62 83 96 97 98 89 72 47 14
32 61 82 95 100 99 90 73 48 15
31 60 81 94 93 92 91 74 49 16
30 59 80 79 78 77 76 75 50 17
29 58 57 56 55 54 53 52 51 18
28 27 26 25 24 23 22 21 20 19
11111 5432*
2222 543*1
333 54*21
22 5*321
1 *4321

0
909
89098
1 7890987
121 678909876
12321 56789098765
1234321 4567890987654
345678909876543
23456789098765432
1234567890987654321

1 1 1
12 21 21
123 321 321
1234 4321 4321
1234554321 54321

1
2*2
1 3*3*3
232 4*4*4*4
45654 4*4*4*4
78910987 3*3*3
2*2
1

1
11
2 3
12 13
4 5 6
13 14 15
7 8 9 10
14 15 16 17
11 12 13 14 15

5
1
54
212
543
32123
5432
4321234
54321
1 1 2 3 4 5
23 6 7 8 9
345 10 11 12
4567 13 14
56789 15

11111
1234
0000
2341
111
3421
00
4321
1

1 11111
4 9 16 1 1
25 36 49 64 81 1 1
100 121 144 169 196 225 256 1 1
289 324 361 400 441 484 529 576 625 11111

1
123
1 12345
1 2 1234567
1 2 3 123456789
1 2 3 4 1234567
1 2 3 4 5 12345
123
1

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
*000*000*
5 4 3 2 2 2 3 4 5
0*00*00*0
5 4 3 2 1 2 3 4 5
00*0*0*00
5 4 3 2 2 2 3 4 5
000***000
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
1
2 4
3 6 9
1
4 8 12 16
1 1
5 10 15 20 25
1 2 1
6 12 18 24 30 36
1 3 3 1
7 14 21 28 35 42 49
1 4 6 4 1
8 16 24 32 40 48 56 64
9 18 27 36 45 54 63 72 81
10 20 30 40 50 60 70 80 90 100

1 11111
1 2 10001
3 5 8 10001
13 21 34 55 10001
89 144 233 377 610 11111

1 2 3 4 5 1
2 1 2 3 4 3 2
3 2 1 2 3 4 5 6
4 3 2 1 2 10 9 8 7
5 4 3 2 1 11 12 13 14 15

1 1
1 2 2
232 3 3
34543 4
4567654 3 3
567898765 2 2
1 1

1 1
2 6 1 2 1
3 7 10 1 2 3 2 1
4 8 11 13 1 2 3 4 3 2 1
5 9 12 14 15 1 2 3 4 5 4 3 2 1

1
2 2 1 2 3 4 5
3 3 16 6
4 4 15 7
3 3 14 8
2 2 13 12 11 10 9
1

N=39714
3 9 1 7 4
9 1 7 4
1 7 4
7 4
4

A E

AB DE

ABC CDE

ABCD BCDE

ABCDE ABCDE

A E

BA ED

CBA EDC

DCBA EDCB

EDCBA EDCBA

ABCDE ABCDE

ABCD BCDE

ABC CDE

AB DE

A E

EDCBA EDCBA

DCBA EDCB

CBA EDC

BA ED

A E
A E

BB DD

CCC CCC

DDDD BBBB

EEEEE AAAAA

EEEEE AAAAA

DDDD BBBB

CCC CCC

BB DD

A E

ABCDEFGFEDCBA
ABCDEF FEDCBA A B C D E F G G F E D C B A
A B C D E F F E D C B A
ABCDE EDCBA A B C D E E D C B A
ABCD DCBA A B C D D C B A
ABC CBA A B C C B A
AB BA A B B A
A A_
A A

83.
84.
Ex-11

85. Write a C program to read and print elements of array. - using recursion.
86. Write a C program to print all negative elements in an array.
87. Write a C program to find sum of all array elements. - using recursion.
88. Write a C program to find maximum and minimum element in an array. - using recursion.
89. Write a C program to find second largest element in an array.
90. Write a C program to count total number of even and odd elements in an array.
91. Write a C program to count total number of negative elements in an array.
92. Write a C program to copy all elements from an array to another array.
93. Write a C program to insert an element in an array.
94. Write a C program to delete an element from an array at specified position.
95. Write a C program to count frequency of each element in an array.
96. Write a C program to print all unique elements in the array.
97. Write a C program to count total number of duplicate elements in an array.
98. Write a C program to delete all duplicate elements from an array.
99. Write a C program to merge two array to third array.
100. Write a C program to find reverse of an array.
101. Write a C program to put even and odd elements of array in two separate array.
102. Write a C program to search an element in an array.
103. Write a C program to sort array elements in ascending or descending order.
104. Write a C program to sort even and odd elements of array separately.
105. Write a C program to left rotate an array.
106. Write a C program to right rotate an array.

Ex-12
107. Write a C program to add two matrices.
108. Write a C program to subtract two matrices.
109. Write a C program to perform Scalar matrix multiplication.
110. Write a C program to multiply two matrices.
111. Write a C program to check whether two matrices are equal or not.
112. Write a C program to find sum of main diagonal elements of a matrix.
113. Write a C program to find sum of minor diagonal elements of a matrix.
114. Write a C program to find sum of each row and column of a matrix.
115. Write a C program to interchange diagonals of a matrix.
116. Write a C program to find upper triangular matrix.
117. Write a C program to find lower triangular matrix.
118. Write a C program to find sum of upper triangular matrix.
119. Write a C program to find sum of lower triangular matrix.
120. Write a C program to find transpose of a matrix.
121. Write a C program to find determinant of a matrix.
122. Write a C program to check Identity matrix.
123. Write a C program to check Sparse matrix.
124. Write a C program to check Symmetric matrix.

Ex-13
114. Program to print a string in C
115. Program to print a string character by character in C
116. Program to find string length without function in C
117. Program to count character occurrent in C
118. Program to count vowels occurrent in C
119. Program to sort string characters in C
120. Program to copy string in C
121. Program to reverse string in C
122. Program to search strings in C
123. Program to swap strings in C
124. Program to compare two strings in C
125. Program to concatenate two strings in C
126. String Anagram program in in C
127. C Program to Find the Frequency of Characters in a String
128. C Program to Find the Number of Vowels, Consonants, Digits and White space in a
String
129. C Program to Remove all Characters in a String except alphabet
130. C Program to Check if a given String is Palindrome
Ex-14
131. Write a program in C to find the square of any number using the function.
132. Write a program in C to swap two numbers using function.
133. Write a program in C to check a given number is even or odd using the function.
134. Write a program in C to find the sum of the series 1!/1+2!/2+3!/3+4!/4+5!/5 using the function.
135. Write a program in C to convert decimal number to binary number using the function.
136. Write a program in C to check whether a number is a prime number or not using the function.

Ex-15
137. Write a program in C to get Score Board of Cricket Match.
138. Write a program in C to get the largest element of an array using the function.
139. Write a program in C to check armstrong and perfect numbers using the function.
140. Write a program in C to check whether two given strings are an anagram.

Input the first String : spare


Input the second String : pears
Expected Output : spare and pears are Anagram.

Ex-16
141. Write a program in C to print first 50 natural numbers using recursion.
142. Write a program in C to calculate the sum of numbers from 1 to n using recursion.
143. Write a program in C to Print Fibonacci Series using recursion.
144. Write a program in C to print the array elements using recursion.
145. Write a program in C to count the digits of a given number using recursion.
146. Write a program in C to find the sum of digits of a number using recursion.
147. Write a program in C to find GCD of two numbers using recursion.
148. Write a program in C to get the largest element of an array using recursion.
149. Write a program in C to reverse a string using recursion.
150. Write a program in C to find the Factorial of a number using recursion.
151. Write a program in C to convert a decimal number to binary using recursion.
152. Write a program in C to check a number is a prime number or not using recursion.
153. Write a program in C to find the LCM of two numbers using recursion.
154. Write a program in C to print even or odd numbers in given range using recursion.
155. Write a program in C to multiply two matrix using recursion.
156. Write a program in C to Check whether a given String is Palindrome or not.
Ex-17
157. Store Information(name, roll and marks) of a Student Using Structure

158. Add Two Distances (in inch-feet) System Using Structures

159. Add Two Complex Numbers by Passing Structure to a Function

160. Calculate Difference Between Two Time Period

161. Store Information of 10 Students Using Structure

162. Store Information Using Structures for n Elements Dynamically

Ex-18
Write a program in C to show the basic declaration of pointer.
Here is m=10, n and o are two integer variable and *z is an integer

z stores the address of m = 0x7ffd40630d44

*z stores the value of m = 10

&m is the address of m = 0x7ffd40630d44

&n stores the address of n = 0x7ffd40630d48

&o stores the address of o = 0x7ffd40630d4c

&z stores the address of z = 0x7ffd40630d50


Write a program in C to demonstrate how to handle the pointers in the program.
Address of m : 0x7ffcc3ad291c
Value of m : 29

Now ab is assigned with the address of m.


Address of pointer ab : 0x7ffcc3ad291c
Content of pointer ab : 29

The value of m assigned to 34 now.


Address of pointer ab : 0x7ffcc3ad291c
Content of pointer ab : 34

The pointer variable ab is assigned with the value 7 now.


Address of m : 0x7ffcc3ad291c
Value of m : 7
Write a program in C to demonstrate the use of &(address of) and *(value at address) operator
Pointer : Demonstrate the use of & and * operator :
--------------------------------------------------------
m = 300
fx = 300.600006
cht = z

Using & operator :


-----------------------
address of m = 0x7ffda2eeeec8
address of fx = 0x7ffda2eeeecc
address of cht = 0x7ffda2eeeec7

Using & and * operator :


-----------------------------
value at address of m = 300
value at address of fx = 300.600006
value at address of cht = z

Using only pointer variable :


----------------------------------
address of m = 0x7ffda2eeeec8
address of fx = 0x7ffda2eeeecc
address of cht = 0x7ffda2eeeec7

Using only pointer operator :


----------------------------------
value at address of m = 300
value at address of fx= 300.600006
value at address of cht= z
Write a program in C to add two numbers using pointers.
Write a program in C to find the maximum number between two numbers using a pointer.
Write a program in C to store n elements in an array and print the elements using pointer.
Write a program in C to sort an array using Pointer.
Write a program in C to print the elements of an array in reverse order
Write a program in C to find the largest element using Dynamic Memory Allocation

Ex-19
Write a program in C to show the usage of pointer to structure
Write a program in C to show a pointer to union.
Write a program in C to show a pointer to an array which contents are pointer to structure.
Ex-20
Write a program in C to swap elements using call by reference.
Write a program in C to add numbers using call by reference.
Write a program in C to find the factorial of a given number using pointers. call by reference.
Ex-21
Write a program in C to print all permutations of a given string using pointers
Write a program in C to show how a function returning pointer.
The permutations of the string are :
abcd abdc acbd acdb adcb adbc bacd badc bcad bcda bdca bdac cbad cbda
cabd cadb cdab cdba db
ca dbac dcba dcab dacb dabc.
Write a program in C to Calculate the length of the string using a pointer.
Write a program in C to count the number of vowels and consonants in a string using a pointer.
Write a program in C to compute the sum of all elements in an array using pointers.
Write a program in C to print all the alphabets using a pointer.
Write a program in C to print a string in reverse using a pointer.
Ex-22

You might also like