-
How to use do-while loop in C Programming
Do-while loop is also a type of repetition structure used to repeat statement(s) for certain number of times. The major difference between while and do while loop is that…
-
How to use for loop in C Programming
For loop is also a type of repetition structure. This repetition structure is simpler in syntax as compared with other 2 loops because all four loop conditions can be…
-
How to get value from user in C Programming
Sometimes in a program we need to get values from user, process the values entered by user and print / output the results of that processing on the screen. In…
-
How to define variables in c programming
In our previous post we discussed about how to get values from user. Sometimes we need to define variables and assign values to those variables. This simple program explains how to…
-
How to use if statement in C Programming
If statement is called as selection structure in C Programming. If statement checks a condition and proceed further depending upon the fact that whether the condition being checked is…
-
How to use if-else statement in C Programming
In previous post we discussed about if statement in C Programming. If-else statement called as double selection structure in C Programming. In simple words it says “Do something when a…
-
How to use switch statement in C Programming
Switch statement is also called as multiple selection structure in C Programming. Switch selection structure is similar to if-else selection structure. The difference is instead of using multiple if-else…
-
How to Output Text/String in C Programming
In C programming we use printf function (which is part of stdio.h library) to print / output some text or variable on the screen. Following simple C program outputs a…
-
Hello World Program in C
Hello World! program is used to start learning any programming language. This simple hello world program is written in C programming language. This simple program just print ‘Hello World!’ string…
