C++ Character Set It is set of Characters/digits/symbol which is valid in C++. Example – A-Z, (white space) C++ Character Set It is set of.

Slides:



Advertisements
Similar presentations
Fundamentals of Computer and programming in C
Advertisements

THE PREPROCESSOR. Preprocessing is (apparently) done before actual compilation begins. The preprocessor doesnt know (very much) C. Major kinds of preprocessor.
Data Types in C. Data Transformation Programs transform data from one form to another –Input data  Output data –Stimulus  Response Programming languages.
This Time Whitespace and Input/Output revisited The Programming cycle Boolean Operators The “if” control structure LAB –Write a program that takes an integer.
String in C++. String Series of characters enclosed in double quotes.“Philadelphia University” String can be array of characters ends with null character.
Chapter 3: Beginning Problem Solving Concepts for the Computer Programming Computer Programming Skills /1436 Department of Computer Science.
Principles of Programming Fundamental of C Programming Language and Basic Input/Output Function 1.
Dale/Weems/Headington
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Fundamentals of Strings and Characters Characters.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 8 - Characters and Strings Outline 8.1Introduction.
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?
Data Types.
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.
C Programming Lecture 4. Tokens & Syntax b The compiler collects the characters of a program into tokens. Tokens make up the basic vocabulary of a computer.
Variable & Constants. A variable is a name given to a storage area that our programs can manipulate. Each variable in C has a specific type, which determines.
Chapter 2: C Fundamentals Dr. Ameer Ali. Overview C Character set Identifiers and Keywords Data Types Constants Variables and Arrays Declarations Expressions.
CHAPTER-6 GETTING STARTED WITH C++ Presented by: Nripendra Kumar PGT (Computer Science) K V Aliganj 2 nd Shift.
The C Character Set: The Characters used to form words, numbers and Expression depends upon the computer on which program runs. Letters. Digits White spaces.
C Tokens Identifiers Keywords Constants Operators Special symbols.
C-Language Keywords(C99)
Constants in C A Presentation On Department of Computer & Information Technology, M.S.P.V.L. Polytechnic College, Pavoorchatram.
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.
Chapter 2: Java Fundamentals
GUIDED BY- A.S.MODI MADE BY- 1. SHWETA ALWANI 2. PRIYANKA.
Characters and tokens Characters are the basic building blocks in C program, equivalent to ‘letters’ in English language Includes every printable character.
Characters. Character Data char data type – Represents one character – char literals indicated with ' '
 Character set is a set of valid characters that a language can recognise.  A character represents any letter, digit or any other sign  Java uses the.
BASICS CONCEPTS OF ‘C’.  C Character Set C Character Set  Tokens in C Tokens in C  Constants Constants  Variables Variables  Global Variables Global.
TEXT FILES. CIN / COUT REVIEW  We are able to read data from the same line or multiple lines during successive calls.  Remember that the extraction.
Chapter 3 – Variables and Arithmetic Operations. Variable Rules u Must declare all variable names –List name and type u Keep length to 31 characters –Older.
Data Structure and c K.S.Prabhu Lecturer All Deaf Educational Technology.
Introduction to Computing Concepts Note Set 12. Writing a Program from Scratch public class SampleProgram1 { public static void main (String [] args)
Java Programming, Second Edition Chapter Two Using Data Within a Program.
Constants, Variables and Data types in C The C character Set A character denotes any alphabet, digit or special symbol used to represent information.
Programming Fundamentals. Summary of previous lectures Programming Language Phases of C++ Environment Variables and Data Types.
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.
Today’s Lecture  Literal  Constant  Precedence rules  More assignment rules  Program Style.
Chapter2 Constants, Variables, and Data Types. 2.1 Introduction In this chapter, we will discuss –constants (integer, real, character, string, enum),symbolic.
Chapter 8 Characters and Strings. Objectives In this chapter, you will learn: –To be able to use the functions of the character handling library ( ctype).
 Variables can store data of different types, and different data types can do different things.  PHP supports the following data types:  String  Integer.
Characters and Strings
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
MAHENDRAN. Session Objectives Session Objectives  Discuss the Origin of C  Features of C  Characteristics of C  Current Uses of C  “C” Programming.
CS113 Introduction to C Instructor: Ioannis A. Vetsikas Lecture 5 : September 4.
Introduction C# program is collection of classes Classes are collection of methods and some statements That statements contains tokens C# includes five.
Introduction to ‘c’ language
Pointers & Arrays 1-d arrays & pointers 2-d arrays & pointers.
Data types Data types Basic types
Formatted Input/Output
Wel come.
trigraph ??= is for # ??( is for [ ??< is for { ??! is for |
Introduction to C++.
' C ' PROGRAMMING SRM-MCA.
Section 3.2c Strings and Method Signatures
Formatted Input/Output
CSE101-Lec#3 Components of C Identifiers and Keywords Data types.
INTRODUCTION c is a general purpose language which is very closely associated with UNIX for which it was developed in Bell Laboratories. Most of the programs.
OUTPUT STATEMENTS GC 201.
Visit for more Learning Resources
Advanced Programming Basics
Character Set The character set of C represents alphabet, digit or any symbol used to represent information. Types Character Set Uppercase Alphabets A,
C++ Basics.
Introduction to Java Programming
Basics of ‘C’.
An overview of Java, Data types and variables
C AS A LANGUAGE Interface between computer & human being. ALPHABETS
ECE 103 Engineering Programming Chapter 8 Data Types and Constants
Comments Any string of symbols placed between the delimiters /* and */. Can span multiple lines Can’t be nested! Be careful. /* /* /* Hi */ is an example.
Course Outcomes of Programming In C (PIC) (17212, C203):
C Programming Lecture-3 Keywords, Datatypes, Constants & Variables
Presentation transcript:

C++ Character Set It is set of Characters/digits/symbol which is valid in C++. Example – A-Z, (white space) C++ Character Set It is set of Characters/digits/symbol which is valid in C++. Example – A-Z, (white space) C++ Token A token in C++ may be the following Keyword Identifier Literals Operators Punctuators C++ Token A token in C++ may be the following Keyword Identifier Literals Operators Punctuators int num=10; In the said example int is Keyword num is identifier 10 is literal = is operator ; punctuators int num=10; In the said example int is Keyword num is identifier 10 is literal = is operator ; punctuators

Escape sequence in C++ These are used to add special effects (generally for output) every escape sequence begin with \ (slash) \n for new line \tfor horizontal tab effect \a for audio bell \tfor Escape sequence in C++ These are used to add special effects (generally for output) every escape sequence begin with \ (slash) \n for new line \tfor horizontal tab effect \a for audio bell \tfor

Data may be many types like character string number decimal values etc. C++ is rich in data type & it supports mainly 2 types of Data Type (1)Fundamental Data type – int char float double void (2)Derived Data Type – Array, function pointer reference constant (3)User Define Data type – class structure union enumeration

Data TypeModifers