c programming Introduction

Welcome to the C programming.Now a days coding is much easier for the developers,right now we have so many resources available in market,we can find lectures in You tube .Our Indian government also providing you tube lectures in NPTEL channel,these lectures are uploaded by the Our famous IITS professors.Coming C Programming language It is the basic programming language for every one all over the world. Most of the operating systems are build by the C language.Which is more secure and faster,but platform dependent language.Mainly MICROSOFT,APPLE Companies are using these language highly comparatively others.

    C program is designed by ‘Dennis Ritchie’ in the year 1968 at BELL labs U.S.A.

    C is an extension of B-language.C is a middle level language.C is best suited for ‘system software’ Applications.We can design a compiler.operating system,driver,linker,loader,assembler and so on by using c.

Compilation :

For every Program you have already know we need basic text editors,by using text editors store source code with extension (like add.c) and we need some basic compiler which is used to translate the source code to machine code.Now we are having online resources and offline Software's for compilation.Dev c++ IDE is better choice to use .Dev C++ IDE for download .

For Dev++ Compilation :
1. Create new file (Ctrl + N).
2. Write the code
3. Save the code in a file say "add.c" (don't use quotes while saving).
4. Press Ctrl+F9 to compile the program.
5. Press Ctrl+F10 to run the program.

 

For Turbo C compiler :
1. Write your code in a file and save it with extension as '.c'.
2. Compile by pressing Alt + F9.
3. Execute by pressing Ctrl + F9
4. For output of this program, press (Alt + F5).

 

Compiling and running c programs in GCC compiler :

this is for the Linux OS based computers.
1. Save the code in a file like "hello.c"
2. To compile open terminal and type "gcc hello.c".
3. To execute type "./a.out".

 

Online compilation :

Here is the most commonly used site ‘compileonline.com’ ,in this site you can compile any language

here is the link for the c programming compiler clickhere.

No comments:

Powered by Blogger.