Turbo c software

 Turbo C is an Integrated Development Environment and compiler for the C programming language from Borland. First introduced in 1987, it was noted for its integrated development environment, small size, fast compile speed.



Run Full screen Turbo C in Windows 7,8 & Vista 32 and 64 bits (version 2.1)









  •  Download this software from this link..
      http://sites.google.com/site/akkilucky1389/da/Setup_TurboC_7_v2.1.rar

  •  Double click on the file "Setup_TurboC_7_v2.1.rar" which you downloaded
  •  open with winrar [or extract it] and install "Setup_TurboC_7_v2.1.exe




overview of c language

                                                                                        

C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC PDP-11 computer in 1972. The C is the most widely used computer language
In 1978, Brian Kernighan and Dennis Ritchie produced the first publicly available description of C, now known as the K&R standard.
The UNIX operating system, the C compiler, and essentially all UNIX applications programs have been written in C. The C has now become a widely used professional language for various reasons.
  • Easy to learn
  • Structured language
  • It produces efficient programs.
  • It can handle low-level activities.
  • It can be compiled on a variety of computer platforms.                             

C language has evolved from three different structured language ALGOL, BCPL and B by Dennis Ritchie. It uses many concepts from these languages and introduced many new concepts such as data types, struct, pointer. In 1988, the language was formalised by American National Standard Institute(ANSI).In 1990, a version of C language was approved by the International Standard Organisation(ISO) and that version of C is also referred to as C89.


Evolution of c language

   Facts about c

  • C was invented to write an operating system called UNIX.
  • C is a successor of B language which was introduced around 1970
  • The language was formalized in 1988 by the American National Standard Institute (ANSI).
  • The UNIX OS was totally written in C by 1973.
  • Today C is the most widely used and popular System Programming Language.
  • Most of the state-of-the-art softwares have been implemented using C.
  • Today's most popular Linux OS and RBDMS MySQL have been written in C.

   

  Why to use c?

 C was initially used for system development work, in particular the programs that make-up  the operating system. C was adopted as a system development language because it  produces code that runs nearly as fast as code written in assembly language. Some        examples of the use of C might be:
  • Operating Systems
  • Language Compilers
  • Assemblers
  • Text Editors
  • Print Spoolers
  • Network Drivers
  • Modern Programs
  • Databases
  • Language Interpreters
  • Utilities

HOW TO CREATE YOUR OWN HEADER FILE IN C LANGUAGE

Header File


A header file is a file with extension .h which contains C function declarations and macro definitions and to be shared between several source files. There are two types of header files: the files that the programmer writes and the files that come with your compiler.
You request the use of a header file in your program by including it, with the C preprocessing directive#include like you have seen inclusion of stdio.h header file, which comes along with your compiler.
Including a header file is equal to copying the content of the header file but we do not do it because it will be very much error-prone and it is not a good idea to copy the content of header file in the source files, specially if we have multiple source file comprising our program.
A simple practice in C or C++ programs is that we keep all the constants, macros, system wide global variables, and function prototypes in header files and include that header file wherever it is required.

Include Syntax

Both user and system header files are included using the preprocessing directive #include. It has following two forms:
#include <file>
This form is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option while compiling your source code.
#include "file"
This form is used for header files of your own program. It searches for a file named file in the directory containing the current file. You can prepend directories to this list with the -I option while compiling your source code.

Need of creating of your own header file ?

when you write a programme the some part of the code is repeated again and again so the same code is typing again and again in diffrent programme and due to this your time is waste and your programme is also lengthi and the user is also take more time to understand the programme...

For example

  •  If you need perform addition in your diffrent programme so dont need to write the same code again and again. You just simply create your header file and use it.

Steps for creating header file

Write a programme for addition
programme-1



      2. save your programme with .h extension.




3. Now if you want to perform addition in your programme so firstly add header file
#include"addition.h"

4. And then where you want to perform addition you just call simply a function addition.

addition();

Programme-2

 4. Output of this programme -:



Now some of you think, in programme-2 we don't include any header file (like stdio.h,conio.h) accept "addition.h".
we dont need need to include these hearder file because in addition.h programme we already add these header file so we dont need to again add these header file in  programme -2..

THANK YOU