Computer Applications

Tuesday, January 5, 2010

C Tutorial.

C is a programming language of many different dialects, similar to the way that each spoken language has many different dialects.

Example:
#include
int main()
{
int this_is_a_number;
printf( "Please enter a number: " );
scanf( "%d", &this_is_a_number );
printf( "You entered %d", this_is_a_number );
getchar();
return 0;
}

Output Is:
a = 4 * 6;
a = a + 5;
a == 5.
There are several common compilers: in particular, Borland C++, Microsoft C++, and GNU C. There are also many front-end environments for the different compilers the most common is Dev-C++ around GNU's G++ compiler.

No comments:

Post a Comment