Prepared By: G.UshaRani B.Pranalini A.S.Lalitha

Slides:



Advertisements
Similar presentations
Question Bank. Explain the syntax of if else statement? Define Union Define global and local variables with example Concept of recursion with example.
Advertisements

Programming In C++ Spring Semester 2013 Lecture 3 Programming In C++, Lecture 3 By Umer Rana.
C Language.
Programming Languages and Paradigms
Programming Languages and Paradigms The C Programming Language.
ECE 353: Lab C Pointers and Structs. Basics A pointer holds an address to some variable Notation: – Dereferencing operator: * int *x is a declaration.
True or false A variable of type char can hold the value 301. ( F )
C Programming Language tutorial Powered by:-
UNIT II Decision Making And Branching Decision Making And Looping
 Decision making statements Decision making statements if statement if...else statement Nested if...else statement (if...elseif....else Statement) 
Python quick start guide
Introduction to Java Appendix A. Appendix A: Introduction to Java2 Chapter Objectives To understand the essentials of object-oriented programming in Java.
DAT602 Database Application Development Lecture 5 JAVA Review.
ASP.NET Programming with C# and SQL Server First Edition Chapter 3 Using Functions, Methods, and Control Structures.
Project 1 Due Date: September 25 th Quiz 4 is due September 28 th Quiz 5 is due October2th 1.
/* Documentations */ Pre process / Linking statements Global declarations; main( ) { Local Declarations; Program statements / Executable statements; }
CPS120: Introduction to Computer Science Decision Making in Programs.
Chapter 3. Outline Relational Operators Loops Decisions Logical Operators Precedence Summary.
Chapter 3 Functions, Events, and Control Structures JavaScript, Third Edition.
 In the java programming language, a keyword is one of 50 reserved words which have a predefined meaning in the language; because of this,
Spring 2009 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 8.
Control Flow Statements
Chapter 1 Java Programming Review. Introduction Java is platform-independent, meaning that you can write a program once and run it anywhere. Java programs.
Variables  A piece of memory set aside to store data  When declared, the memory is given a name  by using the name, we can access the data that sits.
Introduction to Programming G50PRO University of Nottingham Unit 6 : Control Flow Statements 2 Paul Tennent
C syntax (simplified) BNF. Program ::= [ ] Directives ::= [ ] ::= | |… ::=#include > ::=#define.
1 C++ Programming C++ Basics ● C++ Program ● Variables, objects, types ● Functions ● Namespace ● Tests ● Loops ● Pointers, references.
PHP Condtions and Loops Prepared by Dr. Maher Abuhamdeh.
Information and Computer Sciences University of Hawaii, Manoa
LESSON 06.
The Machine Model Memory
Class and Objects UNIT II.
BASIC ELEMENTS OF A COMPUTER PROGRAM
Decisions Chapter 4.
Programming Languages and Paradigms
C Language VIVA Questions with Answers
Chapter 12 Variables and Operators
Objectives Identify the built-in data types in C++
C++, OBJECT ORIENTED PROGRAMMING
Learning C Language.
JavaScript Syntax and Semantics
C Fundamentals & Pointers
C language IT-1 (Batch-A) Name: EnNo: Arshad Muthalif
Prof: Dr. Shu-Ching Chen TA: Samira Pouyanfar Hector Cen Fall 2017
BY GAWARE S.R. COMPUTER SCI. DEPARTMENT
Programming Paradigms
Introduction to C Programming Language
Visit for more Learning Resources
11/10/2018.
JavaScript and Ajax (Expression and Operators)
Arrays, For loop While loop Do while loop
Chapter 10 Programming Fundamentals with JavaScript
Starting JavaProgramming
Outline Altering flow of control Boolean expressions
Character Set The character set of C represents alphabet, digit or any symbol used to represent information. Types Character Set Uppercase Alphabets A,
Java - Data Types, Variables, and Arrays
An Introduction to Java – Part I, language basics
Elements of Programming Languages
Classes and Objects.
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.
Govt. Polytechnic,Dhangar
Repetition Statements (Loops) - 2
Introduction to Programming
Basic Programming Concepts
PHP an introduction.
Decision making and control functions
Programming Languages and Paradigms
C Language B. DHIVYA 17PCA140 II MCA.
Course Outcomes of Programming In C (PIC) (17212, C203):
Lesson 3. Controlling program flow. Loops. Methods. Arrays.
Presentation transcript:

Prepared By: G.UshaRani B.Pranalini A.S.Lalitha OVERVIEW OF C LANGUAGE Prepared By: G.UshaRani B.Pranalini A.S.Lalitha

CONTENTS INTRODUCTION CHARACTERSTICS STRUCTURE OF PROGRAM DATA TYPE IF ELSE SWITCH CASE LOOPING ARRAY POINTER STRUCTURE FUNCTION

INTRODUCTION C language is one of the most popular computer language today because it is a structured ,low level ,machine dependent language It is developed by DENNIS RITCHIE in between 1969 and 1973 at bell labs.

CHARECTERISTICS There are a small, fixed number of keywords, including a full set of flow of control primitives : for, while, if, do while and switch. More than one assignment may be performed in a single statement. There are a large number of arithmetical and logical operators, such as +, +=, ++, &, ~, etc.

STRUCTURE OF PROGRAM Documentation Section Link section Defining section Global declaration section Main function section { Declaration part Executable part. } //optional //Must

Sub program section //optional • Function 1 Function 2 Function n

WHAT IS DATA TYPE ? A data type in a programming language is a set of data values having predefine characteristics. there are three classes of data types: Data Type Primitive derived user define

TYPES OF DATA TYPE In c language compiler support five fundamental data type namely integer (int), character(char), floating point(float),double and void. Derived data types are array, structure, pointer, function. A user define data type is basically made by the user itself.

IF ELSE STATEMENT The if statement is a powerful decision making statement . If ....else statement is a extention of the simple if statement . The general form is : if(test expression) { true-block statement(s) } else false –block statement(s) n

SWITCH CASE It is a control statement that provides a facility for multiway branching from a particular point. syntax: switch(expression) { case labels: break; }

LOOPING LOOP For loop While loop Do while loop To execute a set of instructions repeatedly until a particular condition is being satisfied. LOOP For loop While loop Do while loop

Syntax of loops For loop- For(intialization ; test condition ; increment) { Body of the loop } While loop- While(test condition) { Body of the loop } Do while loop- do { body of the loop }

ARRAY arrayname[size]; Type of array data type Multi-dimensional An array is a collection of elements of the same data type. Syntax : arrayname[size]; Type of array data type Multi-dimensional 1 dimensional 2 dimensional

POINTER C allow us to store the address of one variable in another variable. Syntax: data type *ptrname; STRUCTURE Binding of different type of data member in a single entity. struct structurename different datatype }; Syntax: {

FUNCTION A function definition specifies the name of the function, the types and number of parameters it expects to receive, and its return type. Types of functions Built in function User define function