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

Types of programming language in computer..

  Mainy in computer 48 types of language are occur i.e...
                                          

                      First programming languages


In the 1940s, the first recognizably modern electrically powered computers were created. The limited speed and memory capacity forced programmers to write hand tunedassembly language programs. It was eventually realized that programming in assembly language required a great deal of intellectual effort and was error-prone.
The first programming languages designed to communicate instructions to a computer were written in the 1950s. An early high-level programming language to be designed for a computer was Plankalkül, developed for the German Z3 by Konrad Zuse between 1943 and 1945. However, it was not implemented until 1998 and 2000.[2]
John Mauchly's Short Code, proposed in 1949, was one of the first high-level languages ever developed for an electronic computer.[3] Unlike machine code, Short Code statements represented mathematical expressions in understandable form. However, the program had to be translated into machine code every time it ran, making the process much slower than running the equivalent machine code.

The Manchester Mark 1 ran programs written inAutocode from 1952.
At the University of ManchesterAlick Glennie developed Autocode in the early 1950s. A programming language, it used acompiler to automatically convert the language into machine code. The first code and compiler was developed in 1952 for theMark 1 computer at the University of Manchester and is considered to be the first compiled high-level programming language.[4][5]
The second autocode was developed for the Mark 1 by R. A. Brooker in 1954 and was called the "Mark 1 Autocode". Brooker also developed an autocode for the Ferranti Mercury in the 1950s in conjunction with the University of Manchester. The version for the EDSAC 2 was devised by D. F. Hartley of University of Cambridge Mathematical Laboratory in 1961. Known as EDSAC 2 Autocode, it was a straight development from Mercury Autocode adapted for local circumstances, and was noted for its object code optimisation and source-language diagnostics which were advanced for the time. A contemporary but separate thread of development, Atlas Autocode was developed for the University of Manchester Atlas 1 machine.
Another early programming language was devised by Grace Hopper in the US, called FLOW-MATIC. It was developed for theUNIVAC I at Remington Rand during the period from 1955 until 1959. Hopper found that business data processing customers were uncomfortable with mathematical notation, and in early 1955, she and her team wrote a specification for an Englishprogramming language and implemented a prototype.[6] The FLOW-MATIC compiler became publicly available in early 1958 and was substantially complete in 1959.[7] Flow-Matic was a major influence in the design of COBOL, since only it and its direct descendent AIMACO were in actual use at the time.[8] The language Fortran was developed at IBM in the mid 1950s, and became the first widely used high-level general purpose programming language.
Other languages still in use today, include LISP (1958), invented by John McCarthy and COBOL (1959), created by the Short Range Committee, heavily influenced by Grace Hopper. Another milestone in the late 1950s was the publication, by a committee of American and European computer scientists, of "a new language for algorithms"; the ALGOL 60 Report (the "ALGOrithmic Language"). This report consolidated many ideas circulating at the time and featured three key language innovations:
  • nested block structure: code sequences and associated declarations could be grouped into blocks without having to be turned into separate, explicitly named procedures;
  • lexical scoping: a block could have its own private variables, procedures and functions, invisible to code outside that block, that is, information hiding.
Another innovation, related to this, was in how the language was described:
  • a mathematically exact notation, Backus-Naur Form (BNF), was used to describe the language's syntax. Nearly all subsequent programming languages have used a variant of BNF to describe the context-free portion of their syntax.
Algol 60 was particularly influential in the design of later languages, some of which soon became more popular. The Burroughs large systems were designed to be programmed in an extended subset of Algol.
Algol's key ideas were continued, producing ALGOL 68:
  • syntax and semantics became even more orthogonal, with anonymous routines, a recursive typing system with higher-order functions, etc.;
  • not only the context-free part, but the full language syntax and semantics were defined formally, in terms of Van Wijngaarden grammar, a formalism designed specifically for this purpose.
Algol 68's many little-used language features (for example, concurrent and parallel blocks) and its complex system of syntactic shortcuts and automatic type coercions made it unpopular with implementers and gained it a reputation of being difficultNiklaus Wirth actually walked out of the design committee to create the simpler Pascal language.
Some important languages that were developed in this period include:


                                                                  BUT

We do not need to know about all language..

Following these languages that are need to learn -:

  1. C (one of the most widely used procedural programming languages)
  2. C++ (One of the most widely used Object Oriented Languages specially used in large scale, highly complex, high performance software systems)
  3. Java (usually compiled into JVM bytecode although true native-code compiled versions exist)
  4. PHP (intended for Web servers)
  5. .NET 


what is computer language ???

What makes a computer language? Why do computers have them? Why are there so many different computer languages?


                            HISTORY OF PROGRAMMING


Computers are electronic, and they are digital. To a computer everything is in terms of no voltage potential along a wire, or some voltage available. No voltage means a zero to the computer, and some voltage means a one. Computers can't actually count higher than that without combining multiple ones and zeros.
In the early days, switches were used to load ones or zeros into computer memory.
The front panel switches were used to load in the program. The lights showed the output. There was no monitor.















Each set of on/off switches represented a number. Each number would represent data or an instruction for the computer to perform. This system of only using ones and zeros to represent numbers is called the binary number system. This type of computer language is called a 1GL, or first generation programming language.
Binary numbers are usually represented in groups of four. For example:
1010 0010 0011
Both data and computer instructions are stored in binary. Machine language are the binary numbers representing instructions that the computer interprets. Not all binary data is machine language however. Data such as documents, databases, financial figures are also stored in binary on the computer. This data is, of course, not intended to be run by the computer.
An improvement over entering programs via switches was the use of hexadecimal codes. The decimal numbers used by most people use the digits 0-9. Hexadecimal uses the numbers 0-9 and A-F to represent a set of four switches, or the numbers 0-15. See the table below for an idea of how binary, decimal, and hexadecimal relate.
BinaryDecimalHexadecimal
000
111
1022
1133
10044
10155
11066
11177
100088
100199
101010A
101111B
110012C
110113D
111014E
111115F
1 00001610
1 00011711

In order to make entering programs easier, later computers allowed users to enter programs using assembly language. Each command used a mnemonic, and a program called a compiler would change the mnemonics into the numbers that represented the commands. This type of language is called a 2GL language, or second generation language.


While this was an improvement, it still wasn't very easy to program. The next generation of languages allowed for higher-level abstractions. The first of the third generation languages (COBOL, FORTRANand LISP) were a lot easier to understand and program.


The second and third generation languages used a program called a compiler. A compiler takes the program typed in by the user (called source code) and turns it into machine code. The programmer then runs the machine code. The original source code is not run.


If there are several pieces of source code in a program, they can be linked together into one program with the use of a program called a linker. The linker is run on the machine code generated by the compiler to generate a final program. This final program is what the user runs, and the original source code is not needed.




A disadvantage of compiling to machine language is that the program only works for that particular type of machine. Programs compiled for Windows computers do not work on Apple Macintosh computers, or Linux computers.


Because the whole compile and link steps could be complex for new programmers, some languages instead ran using interpreters. These programs look at the source code and interpret it to machine language instructions on the fly. It also allows the same programs to run on Windows, Mac, and Unix computers, provided there is an interpreter available for each platform.


The drawback of using interpreters is that it is slower to operate through an interpreter than in the machine's native language.
fig.interpreter


Python is an example of an interpreted language. It is easier to develop in Python than C, but Python runs slower and must have a Python interpreter to work.
Languages such as Java use a system where programs are compiled to machine code that runs on a Java Virtual Machine (JVM), rather than the actual machine. Another popular language that does this is C#, a Common Language Infrastructure (CLI) language that runs on the Virtual Execution System (VES) virtual machine. A full discussion of these is beyond the scope of this book, but feel free to read up on them.
There are many different computer languages today. Because computers perform so many types of tasks, different languages have been developed that specialize in these tasks. Languages such as C are good for operating systems and small embedded computers. Other languages like PHP specialize in creating web pages. Python is a general purpose language that specializes in being easy-to-use.
The company Tiobe keeps track of the popularity of various programming language in their index that is updated each month. It is a good idea to look here, and at job placement boards like DICE to keep up to date with what languages employers are looking for.
Thankfully almost all languages share the same common elements, and once one language has been learned, the same theories will apply to the other languages.