C Lab Practical
C Lab Practical
of numbers.
5. W.A.P to swap two variables without using third variable, using call by
value and call
by reference.
12
123
1234
01
101
0101
10101
15. To print the pyramids using asterisks (*).
***
*****
*******
*********
22
333
4444
121
12321
1234321
23. W.A.P to enter n elements in an array and find the sum of even and odd
numbers.
24. W.A.P to enter n characters in an array and count the no. of vowels in it.
25. W.A.P to enter n elements in an array and find the largest number in the
array.
26. W.A.P to enter n elements in an array and find the smallest number in the
array.