SlideShare a Scribd company logo
EC8393 FUNDAMENTALS OF DATA STRUCTURES IN C
UNIT I C PROGRAMMING BASICS
Structure of a C program – compilation and linking processes – Constants, Variables –
Data Types – Expressions using operators in C – Managing Input and Output operations
– Decision Making and Branching – Looping statements. Arrays – Initialization –
Declaration – One dimensional and Two-dimensional arrays. Strings- String operations –
String Arrays. Simple programs- sorting- searching – matrix operations.
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
COMPILATION AND LINKING PROCESSES (EXECUTING THE PROGRAM)
Compile Program:
•Compilation can be done by using compile option from Compile menu. Shortcut key is
Alt+F9.
•After the compilation, errors & warnings are displayed. All the syntax errors are
removed from program during compilation.
•The source program statements should be translated into object programs for
execution. If there is no error, now we can execute the program.
•If there is any error, then the programmer should correct it.
Linking
•Linking keeps all program files and functions required by the program together.
For example, if the programmer is using pow() function, then the object code of this
function should be brought from math.h library and linked to the main() program.
Executing the Program:
•After compilation, the executable object code will be loaded in the computer’s main
memory and the program is executed.
•In case of logic or data errors in the program, the source program is altered and all the
earlier initiated steps such as compilation, linking and execution are repeated.
•Execution can be done by going to Run menu and invoking run option.
•Shortcut key is Ctrl+F9
See the output:
Short cut key for seeing the output is Alt+F5 or we can choose user screen option from
windows menu.
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Expressions Using Operators in “C”
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
THIS IS KNOWN AS
LADDER
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1
Fda unit 1 lec  1

More Related Content

PPTX
Functions in c
PPTX
Presentation on Function in C Programming
PPT
Introduction to c
PDF
Programming Fundamentals Functions in C and types
PPTX
User defined functions
PPTX
Functions in c
PPTX
functions in C and types
PPT
Function in C Language
Functions in c
Presentation on Function in C Programming
Introduction to c
Programming Fundamentals Functions in C and types
User defined functions
Functions in c
functions in C and types
Function in C Language

What's hot (19)

PPT
user defined function
PPTX
PPT
User defined functions in C programmig
PPTX
User defined functions in C
PPTX
Functions in C
ODP
Function
PPT
Functions
PDF
Lecture20 user definedfunctions.ppt
PPSX
Function in c
PPTX
Presentation on function
PPTX
Functions in C
PPTX
predefined and user defined functions
PPTX
Functions in c language
PPTX
Header files in c
PPTX
Built in function
PPTX
Function in c program
PPT
Prsentation on functions
PPTX
Function in c language(defination and declaration)
PDF
FUNCTION IN C PROGRAMMING UNIT -6 (BCA I SEM)
user defined function
User defined functions in C programmig
User defined functions in C
Functions in C
Function
Functions
Lecture20 user definedfunctions.ppt
Function in c
Presentation on function
Functions in C
predefined and user defined functions
Functions in c language
Header files in c
Built in function
Function in c program
Prsentation on functions
Function in c language(defination and declaration)
FUNCTION IN C PROGRAMMING UNIT -6 (BCA I SEM)
Ad

Similar to Fda unit 1 lec 1 (20)

PPTX
Lec01-02 (Topic 1 C++ Fundamentals).pptx
PDF
CP c++ programing project Unit 1 intro.pdf
PPTX
Programming C ppt for learning foundations
PDF
C_Dayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy1.pdf
PPTX
Introduction to computers, input and output devices
PPTX
C programming
PDF
Fundamentals of programming with C++
PPTX
INTRODUCTION TO C PROGRAMMING
PPTX
C programming
DOC
Stnotes doc 5
PPTX
Programming_Lecture_1.pptx
PPTX
1.0 Introduction to C programming for all first year courses.pptx
PDF
PPS Unit-1.pdf
PPTX
computer programming omputer programming
PDF
L1. Basic Programming Concepts.pdf
PDF
C-PROGRAMMING pdf text book notes vtu important
PDF
[ITP - Lecture 02] Steps to Create Program & Approaches of Programming
DOC
Notes of c programming 1st unit BCA I SEM
PPTX
UNIT - 1jhjhjbkjhkjhkjhkjhkjhhkkhhh.pptx
PDF
Lec01-02 (Topic 1 C++ Fundamentals).pptx
CP c++ programing project Unit 1 intro.pdf
Programming C ppt for learning foundations
C_Dayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy1.pdf
Introduction to computers, input and output devices
C programming
Fundamentals of programming with C++
INTRODUCTION TO C PROGRAMMING
C programming
Stnotes doc 5
Programming_Lecture_1.pptx
1.0 Introduction to C programming for all first year courses.pptx
PPS Unit-1.pdf
computer programming omputer programming
L1. Basic Programming Concepts.pdf
C-PROGRAMMING pdf text book notes vtu important
[ITP - Lecture 02] Steps to Create Program & Approaches of Programming
Notes of c programming 1st unit BCA I SEM
UNIT - 1jhjhjbkjhkjhkjhkjhkjhhkkhhh.pptx
Ad

Recently uploaded (20)

PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
GDM (1) (1).pptx small presentation for students
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
RMMM.pdf make it easy to upload and study
PDF
Complications of Minimal Access Surgery at WLH
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Lesson notes of climatology university.
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
master seminar digital applications in india
PDF
Classroom Observation Tools for Teachers
Microbial diseases, their pathogenesis and prophylaxis
A systematic review of self-coping strategies used by university students to ...
GDM (1) (1).pptx small presentation for students
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Chinmaya Tiranga quiz Grand Finale.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Cell Structure & Organelles in detailed.
RMMM.pdf make it easy to upload and study
Complications of Minimal Access Surgery at WLH
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Final Presentation General Medicine 03-08-2024.pptx
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
O7-L3 Supply Chain Operations - ICLT Program
Lesson notes of climatology university.
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
master seminar digital applications in india
Classroom Observation Tools for Teachers

Fda unit 1 lec 1

  • 1. EC8393 FUNDAMENTALS OF DATA STRUCTURES IN C UNIT I C PROGRAMMING BASICS Structure of a C program – compilation and linking processes – Constants, Variables – Data Types – Expressions using operators in C – Managing Input and Output operations – Decision Making and Branching – Looping statements. Arrays – Initialization – Declaration – One dimensional and Two-dimensional arrays. Strings- String operations – String Arrays. Simple programs- sorting- searching – matrix operations.
  • 5. COMPILATION AND LINKING PROCESSES (EXECUTING THE PROGRAM) Compile Program: •Compilation can be done by using compile option from Compile menu. Shortcut key is Alt+F9. •After the compilation, errors & warnings are displayed. All the syntax errors are removed from program during compilation. •The source program statements should be translated into object programs for execution. If there is no error, now we can execute the program. •If there is any error, then the programmer should correct it. Linking •Linking keeps all program files and functions required by the program together. For example, if the programmer is using pow() function, then the object code of this function should be brought from math.h library and linked to the main() program. Executing the Program: •After compilation, the executable object code will be loaded in the computer’s main memory and the program is executed. •In case of logic or data errors in the program, the source program is altered and all the earlier initiated steps such as compilation, linking and execution are repeated. •Execution can be done by going to Run menu and invoking run option. •Shortcut key is Ctrl+F9 See the output: Short cut key for seeing the output is Alt+F5 or we can choose user screen option from windows menu.
  • 37. THIS IS KNOWN AS LADDER