Whenever we are asked to reverse a string, we make use of inbuilt function- strrev (). Obviously, it is the easy method and we can use that. But sometimes, we are asked not to use the strrev (). This program helps to reverse a String without using strrev().
Whenever we are asked to write a program to copy one string to another string, we make use of inbuilt function- strcpy (). Obviously, it is the easy method and we can use that. But sometimes, we are asked not to use the strcpy (). This program helps to copy one String to Another string […]
This code print diamond pattern of stars. Diamond shape is as follows: * *** ***** *** *
Pascal Triangle is one of the most interesting number patterns. It is named after Blaise Pascal, a famous French Mathematician and Philosopher. To build the pascal triangle, we start with “1” at the top, then continue placing numbers below it in a triangular pattern. Each number is the two numbers above it added together except for the […]
This program checks whether an input alphabet is a vowel or not. Both lower-case and upper-case are checked i.e a, A, e, E, I, i, o, O, u, U. #include <stdio.h> #include <conio.h>
Transpose of a matrix is the property to interchange rows and columns of matrix i.e row will become the column of resultant matrix and column will become the row of resultant matrix.