‘C’ LANGUAGE PRESENTATION.  C language was introduced by Dennis Ritchie..  It is a programming language, which can make a interaction between user and.

Slides:



Advertisements
Similar presentations
CSE 105 Structured Programming Language (C)
Advertisements

Introduction to C Programming
C Language.
IT 325 OPERATING SYSTEM C programming language. Why use C instead of Java Intermediate-level language:  Low-level features like bit operations  High-level.
Arrays and Strings.
Programming In C++ Spring Semester 2013 Lecture 2 Programming In C++, Lecture 2.
Chapter 3: Beginning Problem Solving Concepts for the Computer Programming Computer Programming Skills /1436 Department of Computer Science.
Announcements The first graded lab will be posted Sunday 2/15 and due Friday 2/27 at midnight It is brand new, so please don’t hand in last semester’s.
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?
Introduction to C Programming Overview of C Hello World program Unix environment C programming basics.
1 ICS103 Programming in C Lecture 2: Introduction to C (1)
1 Arithmetic in C. 2 Type Casting: STOPPED You can change the data type of the variable in an expression by: (data_Type) Variable_Name Ex: int a = 15;
Guide To UNIX Using Linux Third Edition
C programming Language and Data Structure For DIT Students.
Introduction to C language
Data Type. A data type defines a set of values that a variable can store along with a set of operations that can be performed on that variable. Common.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
© The McGraw-Hill Companies, 2006 Chapter 1 The first step.
Introduction to Java Appendix A. Appendix A: Introduction to Java2 Chapter Objectives To understand the essentials of object-oriented programming in Java.
Variables and Data Types
DEPARTMENT OF COMPUTER SCIENCE & TECHNOLOGY FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UWA WELLASSA 1 CST 221 OBJECT ORIENTED PROGRAMMING(OOP) ( 2 CREDITS.
Lecture DS & Algorithms:09 Abstract Data Types. Lecture DS & Algorithms:09 2 Abstract Data Types Data Type: A data type is a collection of values and.
Program A computer program (also software, or just a program) is a sequence of instructions written in a sequence to perform a specified task with a computer.
Programming With C.
C Programming n General Information on C n Data Types n Arithmetic Operators n Relational Operators n if, if-else, for, while by Kulapan Waranyuwat.
S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A computer is a mechanical or electrical device which stores, retrieves,
Lecture #5 Introduction to C++
C STRUCTURES. A FIRST C PROGRAM  #include  void main ( void )  { float height, width, area, wood_length ;  scanf ( "%f", &height ) ;  scanf ( "%f",
Data Types. Data types Data type tells the type of data, that you are going to store in memory. It gives the information to compiler that how much memory.
GUIDED BY- A.S.MODI MADE BY- 1. SHWETA ALWANI 2. PRIYANKA.
C Programming language Basic Concepts Prepared By The Smartpath Information systems
Looping and Counting Lecture 3 Hartmut Kaiser
C++ Programming Basic Learning Prepared By The Smartpath Information systems
Introduction to Java Java Translation Program Structure
CMP-MX21: Lecture 5 Repetitions Steve Hordley. Overview 1. Repetition using the do-while construct 2. Repetition using the while construct 3. Repetition.
Programming Fundamentals. Overview of Previous Lecture Phases of C++ Environment Program statement Vs Preprocessor directive Whitespaces Comments.
Arrays. The array data structure Array is a collection of elements, that have the same data type Integers (int) Floating point numbers (float, double)
Chapter 1 Java Programming Review. Introduction Java is platform-independent, meaning that you can write a program once and run it anywhere. Java programs.
BY ILTAF MEHDI (MCS, MCSE, CCNA)1. INSTRUCTOR: ILTAF MEHDI (MCS, MCSE, CCNA, Web Developer) BY ILTAF MEHDI (MCS, MCSE, CCNA)2 Chapter No: 04 “Loops”
Data Types Always data types will decide which type of information we are storing into variables In C programming language we are having 3 types of basic.
 Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory. 
Week 1 Lecture 2SE1SA51 Introducing C SE1SA5 Sue Walmsley.
Silberschatz and Galvin  C Programming Language Kingdom of Saudi Arabia Ministry of Higher Education Al-Majma’ah University College of Education.
CISC105 – General Computer Science Class 4 – 06/14/2006.
Functions Chapter 5. Function A set of instructions that are designed to perform specific task. A complete and independent program. It is executed by.
JAVA Programming (Session 2) “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
1 CSC103: Introduction to Computer and Programming Lecture No 17.
Chad’s C++ Tutorial Demo Outline. 1. What is C++? C++ is an object-oriented programming (OOP) language that is viewed by many as the best language for.
Announcements Assignment 2 Out Today Quiz today - so I need to shut up at 4:25 1.
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Intro. to Computer Programming Eng. Nehal A. Mohamed Spring Semester-2016.
Chapter 1 slides1 What is C? A high-level language that is extremely useful for engineering computations. A computer language that has endured for almost.
OPERATORS IN C CHAPTER 3. Expressions can be built up from literals, variables and operators. The operators define how the variables and literals in the.
Arrays An array is a sequence of objects all of which have the same type. The objects are called the elements of the array and are numbered consecutively.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
History of C and basics of Programming
Course Contents KIIT UNIVERSITY Sr # Major and Detailed Coverage Area
The Machine Model Memory
Prof: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2017
C Language VIVA Questions with Answers
BY GAWARE S.R. COMPUTER SCI. DEPARTMENT
By: Syed Shahrukh Haider
Arrays, For loop While loop Do while loop
Introduction C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell.
Program Breakdown, Variables, Types, Control Flow, and Input/Output
C Programming Getting started Variables Basic C operators Conditionals
C Language B. DHIVYA 17PCA140 II MCA.
Variables and Constants
Getting Started With Coding
Presentation transcript:

‘C’ LANGUAGE PRESENTATION

 C language was introduced by Dennis Ritchie..  It is a programming language, which can make a interaction between user and a machine..  It is a basic programming language & it is recognized as a high level language..  It was developed as a software development programming language in ‘AT&T Bell’ labs in between 1969 &

 Program means nothing but doing a task at a time at a particular place..  We need three steps to construct a program..  In C language we construct a program which consists of input, procedure& output..

 Firstly to construct a program we have to decide an exact output..  Then as a next step, we have to give an Input according to the Output..  Now next to the procedure..  Now the required Output will be displayed in EXE file by compiling..

 Compile :- Machine does not understand the common language which is entered in the program..  Compiler translates the source code (used in the program) to binary code( Machine code)..  It checks and displays whether the program contains any errors..

 After compiling the program, run is necessary..  If there are no errors, then we can run the program..  By running, the program can be executed..  Then the written program’s output can be displayed in EXE file..

 Function is nothing but ‘Working’..  Functions to a program is just like bricks to construct a wall..  Function in C is defined as a set of related statements..  Every function can perform its particular task..  Printf(); scanf(); getch() ect are some functions used in a program….

 In C language we have one basic condition..  Every function will be executed by other function..  Main function is defined as “Over all executable function.”..  So it could be mentioned in between header files and procedure..

 These are placed at the top of the program..  Header files contains the perfect definitions of functions..  In C, the program always executes from top to bottom..  It is difficult to mention these files above every function, so these files are placed at the top of the program..

 In C language we can use loops to repeatedly execute the same procedure..  There are different kinds of loops in C..  For, while, do-while are the 3 loops used in C program..  A loop begins with a open brace bracket ‘{‘ and ends with closed brace bracket ‘}’..

 For loop contains three indexes..  First one is for initialization..  Second one is for limiting..  Third one is for increment or decrement..  The given procedure in For loop is can be executed up to the limit which has mentioned in second index..

 While is used to repeat the procedure as For loop..  In while loop we need to mention one condition to repeat a procedure..  The program will be executed up to the mentioned condition is not to be satisfied..

 In while loop the procedure will be stopped, when the condition doesn’t satisfy..  In this loop, the procedure will be executed even for a single time though the given condition is not true..

 Primary data types could be of three varieties..  They are Characters, Integers and Floats..  They can derive many data types from these three types..  They can hold elements and keep those onto the location called Memory Blocks..  Data types have some capacity to hold those elements..  Every memory block have it’s particular location..

 A Character could be an Unsigned Char or a Signed Char..  The range of characters is from -127 to  A Signed char can have the range as same as the Ordinary char..  An Unsigned char has a range from 0 to 255..

 The range of an Integer constant depends upon the compiler..  For a 16 bit compiler like Turbo C or Turbo C++ the range is to  An int could be a short Int or a long Int..  Shorts are never bigger than ints..  Ints are never bigger than Longs..

 They can allow float values..  A float occupies 4 bytes in memory..  It’s range from -3.4e38 to +3.4e38..  If this is insufficient, then C offers a Double data type that occupies 8 bytes in memory and has a range from -1.7e308 to +1.7e308..

 Array is defined as collection of elements of same data type..  We can enter the number of elements of similar type onto one memory block by making some partitions, just like partitions of various rooms in a home..  First we need to decide the size of memory block and then we can enter those elements..

 When we use array for construct a program, firstly we need to decide the size of it..  After that we can not change it’s size while we runs the program..  Suppose, if the number of elements is less than the number of partitions of an array, then the remaining partitions can be wasted..  If the number of elements is greater than the size of an array then it will be collapsed..

 Structure is defined as the group of various data types..  We can make a group of various data types and we can give one name to that structure..  It can be useful when the data could be stored about various things or about various purposes..

By U.Susmitha Haritha Patil& K.Samatha.