C-Character Set Dept. of Computer Applications Prof. Harpreet Kaur

Slides:



Advertisements
Similar presentations
The IDENTIFICATION and ENVIRONMENT DIVISIONS Chapter 2.
Advertisements

Variables, Data Types, & Arithmetic Expressions CSC 1401: Introduction to Programming with Java Lecture 3 Wanda M. Kunkle.
CS1061 C Programming Lecture 4: Indentifiers and Integers A.O’Riordan, 2004.
Chapter 3: Introduction to C Programming Language C development environment A simple program example Characters and tokens Structure of a C program –comment.
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:
Chapter 2 Overview of C Part I J. H. Wang ( 王正豪 ), Ph. D. Assistant Professor Dept. Computer Science and Information Engineering National Taipei University.
C Tokens Identifiers Keywords Constants Operators Special symbols.
Five Tips to Success. Work hard Try more exercises and more practice.
CSC312 Automata Theory Lecture # 2 Languages.
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.
Copyright © 2012 Pearson Education, Inc. Chapter 2: Introduction to C++
College Board A.P. Computer Science A Topics Program Design - Read and understand a problem's description, purpose, and goals. Procedural Constructs.
Programming Fundamental Slides1 Data Types, Identifiers, and Expressions Topics to cover here: Data types Variables and Identifiers Arithmetic and Logical.
BASICS CONCEPTS OF ‘C’.  C Character Set C Character Set  Tokens in C Tokens in C  Constants Constants  Variables Variables  Global Variables Global.
Review: Compiler Phases: Source program Lexical analyzer Syntax analyzer Semantic analyzer Intermediate code generator Code optimizer Code generator Symbol.
When you read a sentence, your mind breaks it into tokens—individual words and punctuation marks that convey meaning. Compilers also perform tokenization.
1.Identifiers 2.Variables 3.Keywords 4.Statements 5.Comments 6.Whitespaces 7.Syntax 8.Semantic © In this session we will.
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.
CC112 Structured Programming Lecture 2 1 Arab Academy for Science and Technology and Maritime Transport College of Engineering and Technology Computer.
CONSTANTS Constants are also known as literals in C. Constants are quantities whose values do not change during program execution. There are two types.
1 12/4/1435 h Lecture 2 Programs and Programming Languages.
Chapter 2 Using Variables and Constant. What is a Constant ? The data in COBOL programs falls in two broad categories: – Constants and Variables A constant.
Constants, Variables and Data types in C The C character Set A character denotes any alphabet, digit or special symbol used to represent information.
Ajmer Singh PGT(IP) Programming Fundamentals. Ajmer Singh PGT(IP) Java Character Set Character set is a set of valid characters that a language can recognize.
1 Compiler Construction (CS-636) Muhammad Bilal Bashir UIIT, Rawalpindi.
CSC312 Automata Theory Lecture # 26 Chapter # 12 by Cohen Context Free Grammars.
Variables. Some Rules of Variable Naming Convention : Variable names are case-sensitive. A variable’s name can be any legal identifier. It can contain.
Tokens in C  Keywords  These are reserved words of the C language. For example int, float, if, else, for, while etc.  Identifiers  An Identifier is.
1 Compiler Construction (CS-636) Muhammad Bilal Bashir UIIT, Rawalpindi.
FG Group -Afrilia BP -Liana F.B.I -Maulidatun Nisa -Riza Amini F.
Constants, Data Types and Variables
DEFINITION Java IDE created by Xinox Software JCreator is a powerful interactive development environment (IDE) for Java technologies. A Java compiler.
Basics of ‘ C ’ By Gaikwad Varsha P. Asst. Prof. Information Technology Dept. Govt. College of Engg. Aurangabad.
2.1 The Part of a C++ Program. The Parts of a C++ Program // sample C++ program #include using namespace std; int main() { cout
1.4 Representation of data in computer systems Character.
INTRODUCTION TO C LANGUAGE
Some basic concepts underlying computer archi­tecture
Overview of c# Programming
CMSC201 Computer Science I for Majors Lecture 22 – Binary (and More)
Well-formed and Valid XML Documents
Languages Prof. Busch - LSU.
Types and Values.
Data Types, Identifiers, and Expressions
trigraph ??= is for # ??( is for [ ??< is for { ??! is for |
Mr. Shaikh Amjad R. Asst. Prof in Dept. of Computer Sci. Mrs. K. S
JavaScript.
Representing Characters
Chapter 12: Text Processing
Computer Programming LAB 1 Tejalal Choudhary Asst. Prof, CSE Dept.
Chapter 12: Text Processing
Programming Vocabulary.
Data Types, Identifiers, and Expressions
C++ Basics.
2.1 Parts of a C++ Program.
Introduction to Java Programming
Unit 1: Introduction Lesson 1: PArts of a java program
Review: Compiler Phases:
Divisibility Rules.
Learning Intention I will learn how computers store text.
The Data Element.
Experiment No. (1) - an introduction to MATLAB
COMPILERS LECTURE(6-Aug-13)
JavaScript: Objects.
12th Computer Science – Unit 5
The Data Element.
Lexical Elements & Operators
C Programming Language
Basic Programming Lab C.
Introduction to MATLAB
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

C-Character Set Dept. of Computer Applications Prof. Harpreet Kaur Govt College Dera Bassi

C-Character Set It is a set of all the alphabets, digits and special symbols used in C language which are: Alphabets – A to Z, a to z Digits – 0 to 9 Special symbols - , . ; : @ # $ % { } etc

TOKENS When the compiler is processing the source code of a C program, each group of characters separated by white space is called as a token. A token is source program text that the compiler does not break down into separate elements.

IDENTIFIERS Both uppercase and lowercase letters can be used but have different meaning. Eg. : Area, average, sum, SUM, MARKS, M5.e6 etc, are all valid identifiers, whereas 6th, basic- pay, d.a, h-r-a, t a are invalid identifiers because they all have invalid character in it.

IDENTIFIERS They have same rules to construct as the rules for constructing variables names. IDENTIFIERS are the names given to various elements of program such as variables, functions, arrays,unions etc.