Posts in Category: General

C

C Programming

         What is a programming language?–Human beings need language to communicate between them. Similarly to communicate with computers we need a programming language. All the events in life can be communicated to computers with the help of programming language. C is the basic of all programming language. Before the introduction of C we had only Machine level languages. C is just like any other communication Language.

      If you learn C programming thoroughly you can easily learn other programming languages. To learn C we just need to know the syntax of C program only. i.e order in which we have to write the contents.This website is intended to introduce C programming to beginning programmers. Over several years of studying, I have noted a large number of students appear to have difficulty in grasping the fundamentals of C Language. So I am trying to explain them with the help of simple examples.

                This website will help you get a quick start with C programming. This website is a guide for the beginners and also for those who have little knowledge on C Programming fundamentals.

                 There are different types of programming languages such as Structure oriented, Object oriented etc. C is the most commonly used Structure oriented programming language. Compiler for some languages are developed using C only. With the help of this tutorial I am trying to explain all the basics of C.In order to successfully complete this tutorial, you won’t need any prior knowledge of the C programming language. First of all I will start with the most basic concepts and take you up to the highest level of C programming including the usually intimidating concepts of structures, union,file, pointers and dynamic memory allocation,etc.

                 Once you have mastered C, you will find Object Oriented Language such as c++,java, etc are easy to learn.

Introduction To C Programming Language

C is a general purpose, structured programming language. Dennis M. Ritchie and Brian W. Kernigahn developed C at Bell Laboratories in USA. Their underlying goal was to develop a language that was simple and flexible enough to be used in a variety of different processors. Since those early days C has undergone several changes. Existing features have been modified; new features have been added and some obsolete once deleted. With the advent and proliferation of microcomputers, several implementations of C emerged. In 1983, the American National Standards Institute formed a committee to produce a C programming language standard. This “ANSI C” was completed in 1988.Major producers of compilers have adopted this standard.

A Simple C Program

Every C program must have one special function main (). This is the point where execution begins when the program is running. We will see later that this does not have to be the first statement in the program, but it must exist as the entry point. The group of   statements defining the main () enclosed in a pair of braces ({}) are executed sequentially. Each expression statement must end with a semicolon.  The closing brace of the main function signals the end of the program. The main function can be located anywhere in the program but the general practice is to place it as the first function.

Here is an elementary C program.

main ()

{

}

There is no way to simplify this program, or to leave anything out. Unluckily, the program does not do anything. Following the “main” program name is a couple of parentheses, which are an indication to the compiler that this is a function. The 2 curly brackets { }, properly called braces, are used to specify the limits of the program itself. The actual program statements go between the 2 braces and in this case, there are no statements because the program does absolutely nothing. You will be able to compile and run this program, but since it has no executable statements, it does nothing. Keep in mind however, that it is a legal C program.

main ( ) function should return zero or one. Turbo C accepts both int and void main ( ) and Turbo C coders use both int and void main ( ) in their programs. But in my belief, void main ( ) is not a standard usage. The reason is, whenever a program gets executed it returns an integer to the OS. If it returns ‘zero’

Stricmp

Page not found… go Home

C-Tutorial/

C Programming Tutorial

C Programming is the basic of all programming language. Before the introduction of C we had only Machine level languages.  This c tutorial will help you get a quick start with C programming. This tutorial is a guide for the beginners and also for those who have little knowledge on C Programming fundamentals.

Turbo C IDE software free download :

IDE is nothing but Integrated Development Environment in which one can develop, run, test and debug the application. 
The C Developing Environment is a screen display with windows and pull-down menus. The program listing, error messages and other information are displayed in separate windows. The menus may be used to invoke all the operations necessary to develop the program, including editing, compiling, linking, and debugging and program execution. If the menu bar is inactive, it may be invoked by pressing the [F10] function key. To select different menu, move the highlight left or right with cursor (arrow) keys. You can also revoke the selection by pressing the key combination for the specific menu.

Invoking the Turbo C IDE

The default directory of Turbo C compiler is c:\tc\bin. So to invoke the IDE from the windows you need to double click the TC icon in the directoryc:\tc\bin.


Opening New Window in Turbo C
The alternate approach is that we can make a shortcut of tc.exe on the desktop.