logo-image

C# .Net Tutorial




What is C?
C is a general-purpose, procedural, high-level programming language used in the development of computer software and applications, system programming, games, and more.

C language was developed by Dennis M. Ritchie at the Bell Telephone Laboratories in 1972.
It is a powerful and flexible language which was first developed for the programming of the UNIX operating System.
C is one of the most widely used programming languages.
C programming language is known for its simplicity and efficiency. It is the best choice to start with programming as it gives you a foundational understanding of programming.



Comments are used to document and explain your codes and program logic. Comments are not programming statements and are ignored by the compiler, but they VERY IMPORTANT for providing documentation and explanation for others to understand your program (and also for yourself three days later).

There are two kinds of comments in C:

  1. Multi-line Comment: begins with a /* and ends with a */, and can span several lines.
  2. End-of-line Comment: begins with // and lasts till the end of the current line.

You should use comments liberally to explain and document your codes. During program development, instead of deleting a chunk of statements permanently, you could comment-out these statements so that you could get them back later, if needed.


C language was developed by Dennis M. Ritchie at the Bell Telephone Laboratories in 1972.
It is a powerful and flexible language which was first developed for the programming of the UNIX operating System.
C is one of the most widely used programming languages.
C programming language is known for its simplicity and efficiency. It is the best choice to start with programming as it gives you a foundational understanding of programming.




Statement: A programming statement is the smallest independent unit in a program, just like a sentence in the English language. It performs a piece of programming action. A programming statement must be terminated by a semi