Sharda University P. K. Mishra (Asst.Prof) Department of Computer Science & Technology Subject Name: Programming Using C Sub Code: CSE-106 Programming.

Slides:



Advertisements
Similar presentations
Agenda Definitions Evolution of Programming Languages and Personal Computers The C Language.
Advertisements

Chapter 3: Beginning Problem Solving Concepts for the Computer Programming Computer Programming Skills /1436 Department of Computer Science.
Dale Roberts Introduction to Java - First Program Dale Roberts, Lecturer Computer Science, IUPUI Department of Computer and.
MC697 Object-Oriented Programming Using Java. In this class, we will cover: How the class will be structured Difference between object-oriented programming.
1 CS 161 Introduction to Programming and Problem Solving Chapter 9 C++ Program Components Herbert G. Mayer, PSU Status 10/20/2014.
Chapter 1: Introduction
Chapter3: Language Translation issues
1 Key Concepts:  Why C?  Life Cycle Of a C program,  What is a computer program?  A program statement?  Basic parts of a C program,  Printf() function?
1 ICS103 Programming in C Lecture 2: Introduction to C (1)
CS 104 Introduction to Computer Science and Graphics Problems Software and Programming Language (2) Programming Languages 09/26/2008 Yang Song (Prepared.
1. 2 Chapter 1 Introduction to Computers, Programs, and Java.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
CHAPTER 1: INTORDUCTION TO C LANGUAGE
Types of software. Sonam Dema..
1 Chapter-01 Introduction to Computers and C++ Programming.
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANCI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
Chapter 3 Getting Started with C++
Software – Applications software and programming languages
Introduction of C++ language. C++ Predecessors Early high level languages or programming languages were written to address a particular kind of computing.
Programming With C.
Board Activity Find your seat on the seating chart Login – Remember your login is your first initial your last name and the last three numbers of your.
Software – Applications software and programming languages.
/* Documentations */ Pre process / Linking statements Global declarations; main( ) { Local Declarations; Program statements / Executable statements; }
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
7 1 User-Defined Functions CGI/Perl Programming By Diane Zak.
Built-In and user-Defined functions Software Design Concepts Lecture IV Dr. Sothy Vignarajah.
Basic Program Construction
PROGRAMMING LANGUAGES
C programming language was developed in the seventies by a group of at the Bell Telephone lab. The C language was the outline of two earlier languages.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans.
CPS120: Introduction to Computer Science Introduction to C++
Functions  A Function is a self contained block of one or more statements or a sub program which is designed for a particular task is called functions.
Course Instructor: Hira Farman Course : BY:HIRA FARMAN.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
FUNCTIONS. Midterm questions (1-10) review 1. Every line in a C program should end with a semicolon. 2. In C language lowercase letters are significant.
Introducing Java Chapter 3 Review. Why Program in Java? Java, is an object-oriented programming language. OOP languages evolved out of the need to better.
An overview of C Language. Overview of C C language is a general purpose and structured programming language developed by 'Dennis Ritchie' at AT &T's.
Introduction. Natural Languages are languages of the Humans These Languages tend to be ambiguous A sentence in natural may not have just one meaning I.
Compilers and Interpreters
MAHENDRAN. Session Objectives Session Objectives  Discuss the Origin of C  Features of C  Characteristics of C  Current Uses of C  “C” Programming.
Intro. to Computer Programming Eng. Nehal A. Mohamed Spring Semester-2016.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Java Programming Fifth Edition Chapter 1 Creating Your First Java Classes.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Computer Language
Component 1.6.
CSC201: Computer Programming
Introduction to programming
C Programming Hardik H. Maheta.
Chapter 2, Part I Introduction to C Programming
C Language VIVA Questions with Answers
Introduction to C++ Introduced by Bjarne Stroustrup of AT&T’s Bell Laboratories in mid-1980’s Based on C C++ extended C to support object-oriented programming.
History of ‘C’ Root of the morden language is ALGOL It’s first
Overview of C.
C language IT-1 (Batch-A) Name: EnNo: Arshad Muthalif
Introduction to C Programming Language
Teaching Computing to GCSE
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANSI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
Computer science By/ Midhat Mohiey. Introduction to Programming using C ++ 2.
TRANSLATORS AND IDEs Key Revision Points.
Chapter 4 void Functions
The C Programming Language
Introduction to C++ Introduced by Bjarne Stroustrup of AT&T’s Bell Laboratories in mid-1980’s Based on C C++ extended C to support object-oriented programming.
PROGRAMMING FUNDAMENTALS Lecture # 03. Programming Language A Programming language used to write computer programs. Its mean of communication between.
Lecture 8 Programming Paradigm & Languages. Programming Languages The process of telling the computer what to do Also known as coding.
CPS120: Introduction to Computer Science
C Programming Language
Getting Started With Coding
Presentation transcript:

Sharda University P. K. Mishra (Asst.Prof) Department of Computer Science & Technology Subject Name: Programming Using C Sub Code: CSE-106 Programming Using C1

C is a popular general purpose programming Language. It is designed and developed by Dinnish Ritcie at Bell Laboratories in This language is Associated closely with Unix operating System. 2Programming Using C

C Runs under a number of operating System including MS.DOS. C Program are Fast, Efficient and Highly portable. 3Programming Using C

C Language is a middle level language. It combines the features of high level language and functionality like Assembly language. It reduces the Gap between high level and Low level language that is why it is known as middle level Language. 4Programming Using C

C is a Structural language. A Structured language allows variety of programs in small modules. It is easy for Debugging, Testing and Maintenance if a Language is a structured one. Structured Language are easier and most of the developers prefer these languages than the non structured ones like Basic and Cobol. 5Programming Using C

Program: A Program is a set of Instructions for performing a particular task.A Program can be written in assembly Languages as well as high level language. This written program is called as source program. The source program is to be converted to the machine language, which is called as object program 6Programming Using C

Interpreter: An interpreter reads only one line of source program at a time and converts it to object codes. In case of any errors the same will be indicated instantly. The disadvantage is that it consumes more time for converting a source program to an object program. 7Programming Using C

Compiler: A Compiler reads the entire program and converts it to the object code. It provides errors not of one line but errors of entire program. Only errors free programs are executed. It consume little time for converting a source program to an object program. When the program length for any application is large compilers are preferred. 8Programming Using C

Structure of a C Program: Every c program contains a number of several building blocks known as function. Each function of it performs task independently. A function is subroutine that may consist of one or more statements. 9Programming Using C

/* Comments*/ //comments #include main() { Declaration part Executable Part } User-defined function { } 10Programming Using C

Header File Section: C program depends upon some header files for function definition that are used in program. Each header file by default is extended with.h.The file should be include using # include directive Ex #include Or #include “ stdio.h” In this example file is included.i.e all the definition and prototypes of function defined in this file are available in the current program. 11Programming Using C

Global Declaration:- This section declares some variables that are used in more then one function. These variables are known as global variables. 12Programming Using C

Function Main (): Every program written in c language must contain main () function. Empty parentheses after main are necessary. The function main () is the starting point of every C program. The execution of the program always begins with the function main (). Except the main () function other section may not be necessary. The program execution starts with opening brace ({) and ends with the closing brace (}). Between these two braces the program should declare the declaration and the executable part. 13Programming Using C

Declaration Part: The declaration parts declare the entire variables that are used in executable part. The initializations of variables are also done in this section. The initialization means providing initial value to the variable. 14Programming Using C

Executable Part : This part contains the statements following the declaration of the variables. This part contains a set of statements or a single statements. These statements are enclosed between the braces. 15Programming Using C

Programming Rules: All statements should be written in lower case letters. Upper case letters are only used for symbolic constants. Blank spaces may be inserted between the words. This improves the readability of the statements, however it is not used while declaring a variable, keyword, constant and function. It is not necessary to fix the position of the statements in the program. i.e the programmer can write the statements any where between two braces following the declaration part. The user can also write one or more statements in one line separating them with a semicolon (;). Hence it is often called a free from language. The opening & closing braces should be balanced. 16Programming Using C

Thanks 17Programming Using C