0% found this document useful (0 votes)
27 views10 pages

Welcome To Sowmya Tutorials: Class

The document introduces C programming, detailing its history, features, and the process of writing, compiling, and executing a C program. It explains the steps involved in creating a C program, including writing, compiling, linking, and executing. Additionally, it provides a simple example of a C program that prints 'Hello C Language'.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views10 pages

Welcome To Sowmya Tutorials: Class

The document introduces C programming, detailing its history, features, and the process of writing, compiling, and executing a C program. It explains the steps involved in creating a C program, including writing, compiling, linking, and executing. Additionally, it provides a simple example of a C program that prints 'Hello C Language'.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

WELCOME TO SOWMYA TUTORIALS

CLASS: BCA 1st SEMESTER | NEP|

C PROGRAMMING| L2

CHAPTER 1: INTRODUCTION TO C PROGRAMMING


WHAT IS C?

 History: C is a programming language developed at AT & T‟s Bell


Laboratories of USA in 1972.

 It was designed and written by Dennis Ritchie. Dennis Ritchie is


known as the founder of C language.

 It was developed to overcome the problems of previous languages


such as B, BCPL etc.

 Initially, C language was developed to be used in UNIX operating


system.
FEATURES OF C

1. Portability or machine independent

2. Sound and versatile language

3. Fast program execution.

4. An extendible language.

5. Tends to be a structured language.


FIRST C PROGRAM

Before starting the C language, you need to learn how to write, compile and run the first c
program.

To write the first c program, open the C console and write the following code:

1. #include <stdio.h>

2. #include <conio.h>

3. void main(){

4. printf("Hello C Language");

5. getch();

6. }
CREATING AND EXECUTING A C PROGRAM

There are 4 steps Creating and Running a Program

1. Writing and Editing (turbo C++ or DOSBOX)

2. Compiling (alt+F9)

3. Linkers

4. Executing (ctrl+F9)
 Writing and Editing

The following steps are used to create a source code

 Command to open editor "filename.c"

 Type the program

 Save the file and exit

 Compiling

“Compiler” is a software that translates the source code written in a high-level language into the
corresponding object code of the low-level language. Once the compilation is successfull (without an
errors) then system will generate an object file(.obj). Command for compiling the file is 'filename.c'.
 Linkers

Many of the high-level languages allow splitting the complex program into multiple
modules. The Linker arranges the object code of all the modules that have been generated
and combines with specified header file code that generates an Executable(.exe) file.

 Executing

Once the executable file is created, we have to execute the program. Command for
executing the file is './a.out'. The command submits the executable file to CPU; the
processor performs the task specified in the source file and generates results.
THANK YOU
If you like my videos please do subscribe
and click on the bell icon for the
notification of the new videos.

You might also like