Pages

Manipulating Array using Pointer in C

Manipulating Array using Pointer in C

In this example, we get sum and average of an array element using pointer. We use pointer to point to the first element of an array then w...

0 Comments
Generating Multiplication Table from 1-12 in C

Generating Multiplication Table from 1-12 in C

This program gives you some idea of formatting the output in C. Here we have used %4d for printing the number. The number 4 defines the wid...

0 Comments
Program to find Smallest and Biggest Number with it's position in C

Program to find Smallest and Biggest Number with it's position in C

In this example we track the smallest and biggest number in an array with it's position. The main logic behind it is first we consider ...

0 Comments
Find Greatest and Lowest Number using Ternary Operator in C

Find Greatest and Lowest Number using Ternary Operator in C

This program give you some idea to use ternary operator in C. We can use this operator in place of IF....ELSE. In this example we use this ...

0 Comments
Counting Total Number of Vowel Letter in a Word in C

Counting Total Number of Vowel Letter in a Word in C

String is a collection of character in other words array of character. In this program we treat string as an array and access each array el...

0 Comments
Convert Decimal to Binary in C

Convert Decimal to Binary in C

We all know how to convert Decimal number to Binary number. This example shows you how to implement that logic into our program. We simply ...

0 Comments
Simple Menu Driven program in C

Simple Menu Driven program in C

This program give you an idea to design your own menu driven program in C/C++. To fulfill our requirement we use Switch case for selecting...

0 Comments

Program to get Transpose Matrix in C

We can get the transpose matrix my interchanging row to column and column to row of a matrix. Source Code: #include <stdio.h> #...

0 Comments

Program to determine Friendly number in C

Friendly number is such number whose sum of the divisor is exactly divisible by that number. Source Code: #include <stdio.h> #in...

0 Comments