0% found this document useful (0 votes)
20 views

10ppt Module#08 DataTypes

This document discusses data types in programming and C++. It defines data type as a classification of data that identifies the operations that can be applied to that data. It explains that different data types have different sizes and operations exclusive to certain types. The learning objectives are to understand declaring data types, the concept of operations on different types. Key data types in C++ include reserved words, identifiers, and rules for naming identifiers involving combinations of letters, digits and underscores.

Uploaded by

Yiannah Marie
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

10ppt Module#08 DataTypes

This document discusses data types in programming and C++. It defines data type as a classification of data that identifies the operations that can be applied to that data. It explains that different data types have different sizes and operations exclusive to certain types. The learning objectives are to understand declaring data types, the concept of operations on different types. Key data types in C++ include reserved words, identifiers, and rules for naming identifiers involving combinations of letters, digits and underscores.

Uploaded by

Yiannah Marie
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

DATA TYPES

Module #08
RECAP!
Why do we need to learn programming / coding?
• Programming skills make us understand how software work.
• Programming skills enhance critical thinking, creativity, and promote the
virtue of perseverance.
• Programming skills gives career flexibility.

Sa totoo lang…
It is a CHEd requirement that all programs, especially technological ones
(aside from CS/IT) should have computer literacy courses.
Computer programming or Coding is a step-by-step process of designing and
developing sets of sequence of instructions to solve a specific problem using a
computer.

Why C++?
Aside from its features and capabilities, C++ is a good programming language to learn
for first time programmers.

* There are different versions of C++ for different devices and platforms.
Types of Words in Programming Languages

1. Reserved words – known as keywords. Reserved words represent


functions or command. Reserved words in C++ are expressed in
lowercase form (small letters).

2. Identifiers – known as user-defined words. An identifier is any name


provider by the use/programmer. The name of your file, program,
subroutine, storages, data structures, your pet, your labsing, etc, are
considered identifiers.
Rules in Naming C++ Identifiers

1. Identifiers may be a combination of alphabets (A – Z, a – z), digits (0 – 9), and/or


underscores (_). All other symbols are NOT allowed.
2. The first character may be an alphabet or an underscore. C++ identifiers should never
start with a DIGIT.
3. No space between symbols/characters.
4. Reserved words should not be used as identifiers.

When in comes to the length, the first 64 characters are significant.


DATA TYPES
Learning Objectives:
• Understand the concept of declaring data types in programming
and the operations that can be applied to the data types.
Define DATA TYPE
Data type is a classification of data. Declaring the type of data identifies
the operations that can be applied to that data.

Why do we need to classify data in programming?


There are operations that are exclusive to certain data types.
Different data types have different sizes.
C++ Data Types

You might also like