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
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
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
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
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
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
Source Code #include <stdio.h> int main () { int num ; printf ( "Enter a integer: " ); scanf ( "%d...
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
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
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
Bitwise operators are special types of operators that are used in programming the processor. In processor, mathematical operations like: add...
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)
ANSI standard has defined many library functions for input and output in C language. Functions printf() and scanf() are the most commonly ...
C Programming Data Types
In C, variable(data) should be declared before it can be used in program. Data types are the keywords, which are used for assigning a type t...
C Program to Demonstrate the Working of Keyword long
Keyword long is used for altering the size of data type. For example: the size of int is either 2 bytes or 4 bytes but, when long keyword i...
ASCII Character Codes
ASCII Character Codes List 0 1 2 3 4 5 6 7 8 9 0 nul soh stx etx eot enq ack bel bs ht 1 nl vt np cr so si dle dcl dc2 dc3 2 dc4 nak syn etb...