Basic Programming Lab C.

Slides:



Advertisements
Similar presentations
C Programming Language 4 Developed in 1972 by Dennis Ritchie at AT&T Bell Laboratories 4 Used to rewrite the UNIX operating system 4 Widely used on UNIX.
Advertisements

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?
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
C programming Language and Data Structure For DIT Students.
Introduction to C language
Copyrights© 2008 BVU Amplify DITM Software Engineering & Case Tools Page:1 INTRODUCTION TO ‘C’ LANGUAGE Chapter 2.
The Data Element. 2 Data type: A description of the set of values and the basic set of operations that can be applied to values of the type. Strong typing:
The Data Element. 2 Data type: A description of the set of values and the basic set of operations that can be applied to values of the type. Strong typing:
C Tokens Identifiers Keywords Constants Operators Special symbols.
Five Tips to Success. Work hard Try more exercises and more practice.
1 CSC103: Introduction to Computer and Programming Lecture No 6.
Structured Programming Approach Module III - Expressing Algorithm Sequence Module IV - Concept of scalar Data Types Prof: Muhammed Salman Shamsi.
JAVA Tokens. Introduction A token is an individual element in a program. More than one token can appear in a single line separated by white spaces.
CPS120: Introduction to Computer Science
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
Constants Numeric Constants Integer Constants Floating Point Constants Character Constants Expressions Arithmetic Operators Assignment Operators Relational.
1 INTRODUCTION TO PROBLEM SOLVING AND PROGRAMMING.
Course Title: Object Oriented Programming with C++ instructor ADEEL ANJUM Chapter No: 03 Conditional statement 1 BY ADEEL ANJUM (MSc-cs, CCNA,WEB DEVELOPER)
BASICS CONCEPTS OF ‘C’.  C Character Set C Character Set  Tokens in C Tokens in C  Constants Constants  Variables Variables  Global Variables Global.
Introduction to Programming
What is C? C is a programming language. It was developed in 1972 USA. It was designed and written by a man named dennis ritchie. C is the base for all.
1 homework Due today: hw #1 (mailing list printout) readings to date: chapter 1 and chapter read appendix B (3 pages on DOS) and and.
CONSTANTS Constants are also known as literals in C. Constants are quantities whose values do not change during program execution. There are two types.
Constants, Variables and Data types in C The C character Set A character denotes any alphabet, digit or special symbol used to represent information.
Types of C Variables:  The following are some types of C variables on the basis of constants values it has. For example: ○ An integer variable can hold.
Topics to be covered  Introduction to C Introduction to C  Characterstics of C Characterstics of C  Characterset Characterset  Keywords Keywords 
Variables and Constants Objectives F To understand Identifiers, Variables, and Constants.
CPS120: Introduction to Computer Science Variables and Constants.
12/14/2016CS150 Introduction to Computer Science 1 Announcements  Website is up!   All lecture slides, assignments,
C BASICS QUIZ (DATA TYPES & OPERATORS). C language has been developed by (1) Ken Thompson (2) Dennis Ritchie (3) Peter Norton (4) Martin Richards.
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.
MAHENDRAN. Session Objectives Session Objectives  Discuss the Origin of C  Features of C  Characteristics of C  Current Uses of C  “C” Programming.
JavaScript Variables Like other programming languages, JavaScript variables are a container that contains a value - a value that can be changed/fixed.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
Constants, Data Types and Variables
INTRODUCTION TO C LANGUAGE
Course Contents KIIT UNIVERSITY Sr # Major and Detailed Coverage Area
BASIC ELEMENTS OF A COMPUTER PROGRAM
Computer Programming (CS-161)
Chapter 1 Introduction to C Programming
Wel come.
ITEC113 Algorithms and Programming Techniques
Introduction to Python Data Types and Variables
C Language VIVA Questions with Answers
Intro to Programming Week # 1 Hardware / Software Lecture # 2
C-Character Set Dept. of Computer Applications Prof. Harpreet Kaur
C language IT-1 (Batch-A) Name: EnNo: Arshad Muthalif
BY GAWARE S.R. COMPUTER SCI. DEPARTMENT
' C ' PROGRAMMING SRM-MCA.
Constant Variable Expression
Visit for more Learning Resources
Introduction to the C Language
Tejalal Choudhary “Computer Programming” Fundamentals of “C”
Computer Programming LAB 1 Tejalal Choudhary Asst. Prof, CSE Dept.
Character Set The character set of C represents alphabet, digit or any symbol used to represent information. Types Character Set Uppercase Alphabets A,
Unit-1 Introduction to Java
Constant: value does not change
Chapter 2 Variables.
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.
Chapter 2: Introduction to C++.
C programming Language
The Data Element.
Primitive Types and Expressions
C – Programming Language
The Data Element.
Course Outcomes of Programming In C (PIC) (17212, C203):
C Programming Lecture-3 Keywords, Datatypes, Constants & Variables
Variables and Constants
Programming Fundamental-1
Presentation transcript:

Basic Programming Lab C

Introduction: History: C is a programming language developed at AT & T’s (American Telephone & Telegraph Company) Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie.

C Character Set A character denotes any alphabet, digit or special symbol used to represent information. The valid alphabets, numbers and special symbols allowed in C. The alphabets, numbers and special symbols when properly combined form Constants Variables Keywords

Constant’s A constant is an entity that doesn’t change whereas a variable is an entity that may change.

C Variables: An entity that may vary during program execution is called a variable. Variable names are names given to locations in memory. These locations can contain integer, real or character constants. Rules for Constructing Variable Names  A variable name is any combination of 1 to 31 alphabets, digits or underscores. Some compilers allow variable names whose length could be up to 247 characters. The first character in the variable name must be an alphabet or underscore No commas or blanks are allowed within a variable name. No special symbol other than an underscore can be used in a variable name. C compiler is able to distinguish between the variable names by making it compulsory for you to declare the type of any variable name that you wish to use in a program. This type declaration is done at the beginning of the program.

C Keywords The keywords are also called ‘Reserved words’. Keywords are the words whose meaning has already been explained to the C compiler (or in a broad sense to the computer). The keywords cannot be used as variable names because if we do so we are trying to assign a new meaning to the keyword, which is not allowed by the computer. 32 keywords available in C.