The if, if...else and nested if...else statement are used to make one-time decisions in C Programming, that is, to execute some code/s and i...
C Programming Introduction Examples
C Programming
C Programming Introduction Examples
This page contains example and source code on very basic features of C programming language. To understand the examples on this page, you sh...
C Program to Swap Two Numbers
C Programming
C Program to Swap Two Numbers
This program asks user to enter two numbers and this program will swap the value of these two numbers. Source Code to Swap Two Numbers #incl...
C Program to Find Size of int, float, double and char of Your System
C Programming
C Program to Find Size of int, float, double and char of Your System
The size of a character is always 1 byte but, size of int, float and double variables differs from system to system. This program will compu...
C Program to Find Quotient and Remainder of Two Integers Entered by User
C Programming
C Program to Find Quotient and Remainder of Two Integers Entered by User
In this program, user is asked to enter two integers(dividend and divisor) and this program will compute the quotient and remainder and disp...
C Program to Find ASCII Value of a Character
C Programming
C Program to Find ASCII Value of a Character
Every character in C programming is given an integer value to represent it. That integer value is known as ASCII value of that character. Fo...
C Program to Multiply two Floating Point Numbers
C Programming
C Program to Multiply two Floating Point Numbers
In this program, user is asked to enter two floating point numbers and this program will mulitply these two numbers and display it. Source C...
C Program to Add Two Integers
In this program, user is asked to enter two integers and this program will add these two integers and display it. Source Code /*C programmin...
C Program to Print a Integer Entered by a User
C Programming
C Program to Print a Integer Entered by a User
Source Code #include <stdio.h> int main () { int num ; printf ( "Enter a integer: " ); scanf ( "%d...
C Program to Print a Sentence
C Programming
C Program to Print a Sentence
Source Code /* C Program to print a sentence. */ #include <stdio.h> int main () { printf ( "C Programming" ); /* print...
C Programming Operators
C Programming
C Programming Operators
Operators are the symbol which operates on value or a variable. For example: + is a operator to perform addition. C programming language ha...
Difference in Increment ++ Operator as Prefix and Postfix
C Programming
Difference in Increment ++ Operator as Prefix and Postfix
In any programming (Java, C Programming, PHP etc. ), increment ++ and decrement -- operator are used for increasing and decreasing the valu...
Bitwise Operators in C programming
C Programming
Bitwise Operators in C programming
Bitwise operators are special types of operators that are used in programming the processor. In processor, mathematical operations like: add...
C Programming Pointers
C Programming
C Programming Pointers
Pointers are the powerful feature of C and (C++) programming, which differs it from other popular programming languages like: java and Visua...
C Programming Input Output (I/O)
C Programming
C Programming Input Output (I/O)
ANSI standard has defined many library functions for input and output in C language. Functions printf() and scanf() are the most commonly ...