## C program to find compound interest using user input values

C program to find compound interest using user given values : In this C programming tutorial, we will learn how to find the compound interest for a time interval using user input values. The user will enter the values and our program will calculate and print out the compound interest. Read more…

## C program to check if a number is palindrome or not

C program to check if a number is palindrome or not : A number is called a palindromic number if it remains same even if the digits are reversed. For example, 1123 is not a palindrome number but 12321 is a palindrome. In this tutorial, we will learn how to Read more…

## fabs function in C with example

fabs function in C : The fabs function is defined in math.h header file. It is used to find out the absolute value of a number. fabs takes one double number as argument and returns the absolute value of that number. In this tutorial , we will show you how Read more…

## How to use strchr to print substring starting from a specific character

strchr in C : How to use strchr to print substring starting from a specific character : In this tutorial, we will learn what is strchr in C programming language and how to use it. We will show you with an example with explanation. strchr function can return the pointer Read more…

## C program to read the contents of a file character by character

C program to read the contents of a file character by character : In this tutorial, we will learn how to read contents of file in C programming language. You can modify the program to read contents from multiple files if you want. The program will read the contents character Read more…

## C program to check if a number is positive,negative or zero using macros

C programming to check if a number is positive, negative or zero using macros : In this programming tutorial, we will learn how to check if a user input number is zero, negative or positive. Our program will ask the user to enter a number. Then it will check if Read more…

## C programming example to print the source code of the current program

C programming example to print the source code of the current program : This is a commonly asked interview question for C. In this tutorial, you will learn how to print the source code of the current program. The output of the program is the program itself : C program Read more…

## Find ‘sin’ ‘cos’ and ‘tan’ values of a ‘degree’ in C

Find ‘sin’ ‘cos’ and ‘tan’ values of a ‘degree’ in C : We have one standard math.h library function in C that helps to find the ‘sin’, ‘cos’ and ‘tan’ value of a degree. In this tutorial, we will learn how to calculate these values from a user input degree Read more…

## What is auto variable in C and how it works

What is auto variable in C and how it works : Auto variable or Automatic variables are actually local variable that is automatically allocated when the program control enters in its scope, and it is automatically deallocated when the control exits its scope.While declaring a variable, we can use auto Read more…

## C programming tutorial to learn atof, atoi and atol functions

C programming tutorial to learn atof(), atoi() and atol() functions : In this C programming tutorial, we will learn three different functions of C : atof(),atoi() and atol(). These functions are mainly used to convert a string to other different data types. Let’s take a look at them with examples Read more…