1
C Programming Introduction ExamplesC 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 should have knowledge of following topics: Variables and ConstantsData TypesInput and Output in C programmingOp…

Read more »

0
C Program to Swap Two NumbersC 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#include int main(){ float a, b, temp; printf("Enter value of a: "); scanf("%f",&a); printf("Ente…

Read more »

0
C Program to Find Size of int, float, double and char of Your SystemC 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 compute the size of int, float, double and char of you system using sizeof operator. The syntax of size of operator…

Read more »

1
C Program to Find Quotient and Remainder of Two Integers Entered by UserC 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 display it.Source Code/* C Program to compute remainder and quotient */#include int main(){ int dividend, divi…

Read more »

0
C Program to Find ASCII Value of a CharacterC 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. For example: ASCII value of 'a' is 97. Here is the complete list of ASCII value of characters in C programming. …

Read more »

2
C Program to Multiply two Floating Point NumbersC 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 Code/*C program to multiply and display the product of two floating point numbers entered by user. */#include in…

Read more »

0
C Program to Add Two IntegersC 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 programming source code to add and display the sum of two integers entered by user */#include int main( ){ int num1, nu…

Read more »

0
C Program to Print a Integer Entered by a UserC Program to Print a Integer Entered by a User

Source Code#include int main(){ int num; printf("Enter a integer: "); scanf("%d",&num); /* Storing a integer entered by user in variable num */ printf("You entered: %d",num); return 0;}OutputEnter a integer: 25You entered: 25Explana…

Read more »

0
C Program to Print a SentenceC Program to Print a Sentence

Source Code/* C Program to print a sentence. */#include int main(){ printf("C Programming"); /* printf() prints the content inside quotation */ return 0;}OutputC ProgrammingExplanation Every C program starts executing code from main( ) function. …

Read more »

0
C Programming OperatorsC Programming Operators

Operators are the symbol which operates on value or a variable. For example: + is a operator to perform addition.C programming language has wide range of operators to perform various operations. For better understanding of operators, these operators …

Read more »

0
Difference in Increment ++ Operator as Prefix and PostfixDifference 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 value of operand by 1 respectively.Suppose, a=5 then,++a; //a becomes 6a++; //a becomes 7--a; …

Read more »

0
Bitwise Operators in C programmingBitwise Operators in C programming

Bitwise operators are special types of operators that are used in programming the processor. In processor, mathematical operations like: addition, subtraction, addition and division are done using the bitwise operators which makes processing faster a…

Read more »

0
C Programming PointersC Programming Pointers

Pointers are the powerful feature of C and (C++) programming, which differs it from other popular programming languages like: java and Visual Basic.Pointers are used in C program to access the memory and manipulate the address.Reference operator(&)If…

Read more »

0
C Programming Input Output (I/O)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 used to display out and take input respectively. Let us consider an example:#include //This is needed to r…

Read more »

0
C Programming Data TypesC 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 to a variable.Data types in CFundamental Data TypesInteger typesFloating TypeCharacter typesDerived Data TypesA…

Read more »

0
C Program to Demonstrate the Working of Keyword longC 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 is used, the size of long int will be either 4 bytes or 8 bytes. Also, you can use long long int. The size of lo…

Read more »

0
ASCII Character CodesASCII Character Codes

ASCII Character Codes List01234567890nulsohstxetxeotenqackbelbsht1nlvtnpcrsosidledcldc2dc32dc4naksynetbcanemsubescfsgs3rsussp!"#$%&'4()*+,-./01523456789:;6=>?@ABCDE7FGHIJKLMNO8PQRSTUVWXY9Z[\]^_'abc10defghijklm11nopqrstuvw12xyz{|}~delHow to use ASCII …

Read more »
 
123 ... 27»
 
Top