C Tutorials

The Birth and history of C Programming Language

  • 2007-09-07
  • Comments
  • Emiley J
  • 227

The C language shook the computer world. Its impact should not be underestimated, because it fundamentally changed the way programming was approached and thought about. The creation of C was a direct result of the need for a structured, efficient, highlevel language that could replace assembly code when creating systems programs. As you probably know, when a computer language is designed, trade-offs are often made, such as the following:
Read More

Basics of C

  • 2007-09-20
  • Comments
  • Abinaya
  • 227

C is a general-purpose programming language. It has been closely associated with the UNIX operating system where it was developed, since both the system and most of the programs that run on it are written in C. The language, however, is not tied to any one operating system or machine; and although it has been called a ``system programming language'' because it is useful for writing compilers and operating systems, it has been used equally well to write major programs in many different domains.
Read More

Getting Started with C

  • 2007-09-20
  • Comments
  • Baski
  • 226

The only way to learn a new programming language is by writing programs in it. The first program to write is the same for all languages:  Print the words, hello, world. This is a big hurdle; to leap over it you have to be able to create the program text somewhere, compile it successfully, load it, run it, and find out where your output went. With these mechanical details mastered, everything else is comparatively easy.
Read More

Variables and Arithmetic Expressions in C

  • 2007-09-20
  • Comments
  • Charles
  • 226

This C sample program uses the formula oC=(5/9)(oF-32) to print the following table of Fahrenheit temperatures and their centigrade or Celsius equivalents:
Read More

The for statement in C

  • 2007-09-20
  • Comments
  • Daniel Malcolm
  • 226

The for statement is a loop, a generalization of the while. If you compare it to the earlier while, its operation should be clear. Within the parentheses, there are three parts, separated by semicolons. The first part, the initialization
Read More

Functions in C

  • 2007-09-20
  • Comments
  • Kamini
  • 226

In C, a function is equivalent to a subroutine or function in Fortran, or a procedure or function in Pascal. A function provides a convenient way to encapsulate some computation, which can then be used without worrying about its implementation. With properly designed functions, it is possible to ignore how a job is done; knowing what is done is sufficient. C makes the sue of functions easy, convinient and efficient; you will often see a short function defined and called only once, just because it clarifies some piece of code.
Read More

Basics of Structures in C

  • 2007-09-22
  • Comments
  • Grenfel
  • 226

The keyword struct introduces a structure declaration, which is a list of declarations enclosed in braces. An optional name called a structure tag may follow the word struct (as with point here). The tag names this kind of structure, and can be used subsequently as a shorthand for the part of the declaration in braces.
Read More

Pointers and Arrays in C

  • 2007-09-22
  • Comments
  • Priya
  • 226

In C, there is a strong relationship between pointers and arrays, strong enough that pointers and arrays should be discussed simultaneously. Any operation that can be achieved by array subscripting can also be done with pointers. The pointer version will in general be faster but, at least to the uninitiated, somewhat harder to understand.
Read More

Most Viewed Articles on C

Latest Tutorials

Ask a Question

Subscribe to Tutorials

Related Tutorials

Command-line arguments in C

Simple arithmetic calculations in C

Find square and square root for a given number in C

Sorting an integer array in C

Printing a simple histogram in C

Sum of the elements of an array in C

Passing pointer to a function in C

Passing double value to a function in C

Calculator in C

Infix to Prefix And Postfix in C

while, do while and for loops in C

Unicode and UTF-8 in C

if, if...else and switch statements in C with samples

Formatting with printf in C

Statements in C

Archived Comments

1. i could not understood the left & right shift
View Tutorial          By: deepak singhal at 2013-07-10 03:37:44

2. This article is very good. It is very easy to unde
View Tutorial          By: Vandana B.Dass at 2010-02-01 00:54:54

3. thanx a lot.............!!!! u r best..........
View Tutorial          By: Pratik at 2010-04-12 12:41:30

4. these above examples of overloading and overriding
View Tutorial          By: janmejay pant at 2011-03-02 22:06:16

5. Can we use the if sttmt l;ike this::
if (a

View Tutorial          By: Anubhav at 2010-11-14 08:15:04

6. BEST COMMENT EVER:
"Reading the above

View Tutorial          By: Mr.X at 2013-10-02 16:31:42

7. Hi i am sanjay ,
I got the exact difference

View Tutorial          By: Sanjay Patel at 2012-05-06 11:36:00

8. Isn't the Vector class deprecated now? I think Arr
View Tutorial          By: Brent at 2013-07-07 06:10:01

9. Handling several submissions can be a lot simple t
View Tutorial          By: Blaze Blankenship at 2012-12-05 13:04:12

10. Assume scenario:
- i have set connection po

View Tutorial          By: Dan at 2012-02-22 09:48:46