Blog : Online Interview Questions

C Program Examples
C Program to Count Number of Digits in an Integer
C Program to Count Number of Digits in an Integer

The internal execution of the program depends upon the entered Integer.After the successful compilation of the program, a message is displayed on the screen as Enter a number in whose digits you want to count.If you entered 436 then again a message displayed as The number of digits in above integer is : 3

C Program Examples
C program to get square root of a number
C program to get square root of a number

Number is an arithmetical value, expressed by a word, symbol, or figure, representing a particular quantity and used in counting and making calculations. This program allows the user to enter any number and then finds the square root of that number using math function sqrt () This program uses the math function findSQRT(int number) to find the square root of a number. As we all know √number = number½.

SEO Tutorials
6 Ways to approve your DoFollow comments
6 Ways to approve your DoFollow comments

It is a well-known method that is used every day by many blogs. The speech here is from DoFollow's backlinks via blog comments. However, many blog networks such as Blogspot, WordPress, Typepad, etc., only leave nofollow comments because many have to stick to the Google webmaster rules of nofollow. However, there are some bloggers who are making the effort to use special plugins or applications to remove the evil rel = "nofollow" tag from their default blog platform. Many want to increase their blog traffic.

C Program Examples
C Program to Find ASCII Value of a Character
C Program to Find ASCII Value of a Character

This program evaluates The ASCII value of inserted character. In this program, the user is asked to enter 'A' character. The character is stored in variable a. When %d format string is used, 65 (the ASCII value of G) is displayed. When %c format string is used, 'A' itself is displayed.

C Program Examples
C program to find factorial of a number
C program to find factorial of a number

The factorial of a positive number n is calculated by: The factorial of n (n!) = 1 * 2 * 3 * 4....n In this program we will find the factorial of a number where the number should be entered by the user. Factorial is sequence of a number whose multiply all previous number.

C Program Examples
C Program to Check number is Odd or Even
C Program to Check number is Odd or Even

In this program, User Enter a number and check whether the given number is even or odd. Then, after successful compilation displays to check it is Odd or Even on the screen. The output of this Program is given below:Enter any number to check it is even or odd: 4153 is Even.Enter any number to check it is even or odd: 33 is Odd.

C Program Examples
C Program to Generate Fibonacci Series using recursion
C Program to Generate Fibonacci Series using recursion

This Program adds previous two numbers value to compute the next number value. In this program Fibonacci series is calculated using recursion, with seed as 0 and 1. In the code Fibonacci function calls itself with a lesser value several times. An termination condition is very important to recursion function, i.e. n == 0 and n == 1 or the recursive call would be infinite leading to stack overflow error.

C Program Examples
C Program to Calculate Simple Interest
C Program to Calculate Simple Interest

This C program allows the user to enter the Principal Amount, Rate of Interest, and the Number of years. By using those values, this C Program will calculate the Simple Interest using following formula: Simple Interest = (Principal Amount * Rate of Interest * Number of years) / 100.

C Program Examples
C program to reverse any number by using function
C program to reverse any number by using function

This Program reversed any number such as Integer, float, or decimal in their equivalent. After the successful compilation of the program, a message is displayed on the screen as Please! Enter a string that you want to reverse: Suppose, User, entered 11001 then again a message is displayed as The Equivalent Reversed Number is 10011. Read more...

C Program Examples
C program to convert celsius to fahrenheit
C program to convert celsius to fahrenheit

To get the output of the this Program, User will Enter temperature in Celsius: 100 Then, Compiler will convert it into Fahrenheit automatically. The final output shown onto the screen is as follows: Enter temperature in Celsius: 100 100 Celsius = 212.00 Fahrenheit

C Program Examples
C Program to Check Whether a Character is Vowel or Consonant
C Program to Check Whether a Character is Vowel or Consonant

In this Program, the if…else statement is used to check whether an alphabet entered by the user is a vowel or a constant. The five letters A, E, I, O and U are called vowels. All other letters except these 5 vowel letters are called consonants. This program assumes that the user will always enter an alphabetic character.

C Program Examples
C program to print prime numbers between 1-100
C program to print prime numbers between 1-100

This Program runs a loop from 2 to 100 and checks for each current number within range that it is prime or not. After the successful execution of the program it displays the list of all prime numbers from 2 to 100. As we know that 1 is not a prime number so we don't need to check it.

C Program Examples
C program to swap two numbers without using third variable
C program to swap two numbers without using third variable

This Program stores two integers one by one into the int datatype. After the successful swapping of numbers it will exchange the value of them at once or you can say that it assign a's value to b and b's value to a.

C Program Examples
C program string palindrome
C program string palindrome

In the successful compilation of the program, a message is displayed on the screen as Please! Enter a string to check if it's a palindrome:This program entered a string by user then store it into a variable after that found its reversed and store it in to another variable if both variables are same then we can say that inputed string is palindrome otherwise that is not a palindrome.

C Program Examples
C program to reverse a string
C program to reverse a string

This program reversed the entered string that means opposite of the previous string sequence.

Write For Us.

Contribute the Community.