FreePrograms

  CONTACT US   ABOUT US   PRIVACY  DISCLAIMER

C Language Tutorial with Free C Programs

FREE C PROGRAMS 

What is C C vs C++ vs Java Program Structure Data Types in C Basic Rules of C & C++
Functions in C If, Else Conditions Loops in C Switch Case Arrays
Pointers Structures in C Strings in C Command Line Arguments Type Casting
Linked Lists Recursion Binary Trees Inheritance Multiple Inheritance
Templates File I/O Object Oriented Programming Data Structures in C C interview Questions

Type-Casting : C Language Tutorial

Typecasting in c means converting an expression of a given type into another type.

This process is known as type-casting.

Example of typecasting:

#include <iostream> 

using namespace std;

int main()       
{
  cout<< (char)25 <<"\n"; //
Here (char) is a typecast, saying pc to interpret the 25 as a character, not as a number
   cin.get();
}

© COPYRIGHT 2009 ALL RIGHTS RESERVED FREECPROGRAMS.COM