Jump to content
xisto Community
Sign in to follow this  
faizy999

C Language Tutorial Part 1

Recommended Posts

A C language is a middle level language first used to devolop the unix operating system.
Why it is called middle level language because it has the power of low level and high level languages Wrinting a first program in c language is so easy. u first have to write its code then compile in a compiler which creates it executable file to run. What u need to write and compile a C language program.
1: A compiler for eg (Borland C++ Compiler v5)
this compiler also compile with c compatibality. it also includes its built it editor on which u write your code. After getting this compiler or any other that suits u write the following code.


#include <stdio.h>[br]#include <conio.h>[/br]void main (void)[br]{[/br]     clrscr();                                 //Clears the screen[br]     printf("Write Your Here");        //Prints the text in Quatations[/br]     getch();                                 //waits for a key to press[br]}
[/br]Description Of Program::>>
Above Prgram Simply Prints the text written under the quatation marks now i explain what each line mean in the program
first of all forget these statements right now #include <some_name>
what clrscr do it clears your dos screen
printf prints the text inside the quatation marks
getch wait until the is presses
When u write this u have to compile and link it so an executable file is made of your program when u run this program tell me what u experianced.
Also need more Help Just ask Here In this Topic . B)

Share this post


Link to post
Share on other sites

I had approched for a C prog test and This was the prog which was given to me.. Write a program to calculate 2 numbers whose INPut is text Format i.e. Alphabetic ( in figures) . So the entire input will be in figures. Suppose u want to add 657 and 42554. Then ur gonna enter six hundred and fifty seven plus ......The Program is supposed to calculate this and retuen the answer in FIGURES. See if u can try it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.