SCALAR AND COMPOSITE DATA TYPES அதில் இரண்டு முக்கியமான ……
SCALAR AND COMPOSITE DATA TYPES
Scalar Data Type Scalar Data Type என்பது ஒரு நேரத்தில் ஒரே ஒரு atomic / single value-ஐ represent செய்யும் data type. Examples: Integer Floating Point Character Boolean Enumeration Pointer Programming language-ஐ பொறுத்து exact classificatio…
int age = 25; age ஒரே ஒரு integer value வைத்திருக்கிறது. So, இத……
Scalar Data Type Scalar Data Type என்பது ஒரு நேரத்தில் ஒரே ஒரு atomic / single value-ஐ represent செய்யும் dat……
ஒரு student-ன் age மட்டும் store செய்ய வேண்டும். int age = 20; இங்கு: age ↓ 20 ஒரே value. இதனால்: Scalar ஆனால……
DATA TYPE | +-------------------------+ | | v v Scalar Composit……
SCALAR DATA TYPES
Scalar என்ற word-ன் basic meaning: Single quantity. Programming-ல்: ……
int x = 10; x ↓ 10…
Scalar data type-ன் முக்கிய properties: Single value store செய்கிறது Usually indivisible / atomic value ஆக co……
INTEGER TYPE
Integer data type என்பது fractional part இல்லாத who……
25 என்பது ஒரு single numeric value. இதனால் int scalar type. int ↓ one integer va……
FLOATING-POINT TYPE
Decimal / fractional values represent செய்ய floating-point data types பயன்படு……
double pi = 3.1415926535; இங்……
CHARACTER TYPE
Single character store செய்ய character type பயன்படுக……
char ch = 'A'; Single quotes: 'A' ஒரு chara……
BOOLEAN TYPE
Boolean type இரண்டு logical v……
bool passed = true; passed ஒரு single Boolean value வைத்திருக……
ENUMERATION TYPE
Enumeration என்பது programmer……
enum Day { Monday, Tuesday, Wednesday }; Variable: Day today = Monday; today ஒரு நேரத்தில் ஒரு enumera……
POINTER TYPE
சில programming language classifications-ல் pointer-ஐ scalar type என்று classify செய்கிறார்கள். C++ standard ……
return 0; }…
C++ cout பொதுவாக true-ஐ 1 என்றும் false-……
int age = 25; age ஒரு integer scalar variable. float mark = 85.5f; mark ஒரு floating-p……
age ↓ 25 mark ↓ 85.5 grade ↓ A passed ↓ t……
1. COMPOSITE DATA TYPES
Composite data type என்பது multiple data elements / components-ஐ combine ……
int marks[5] = {80, 85, 90, 75, 95}; marks object: marks ……
Multiple elements வைத்திருக்கலாம் Elements same type அல்லது different type ஆக இருக்கலாம் Complex data structu……
ARRAY
Array என்பது same type values பலவற்றை co……
int marks[5] = {70, 80, 90, 85, 75}; Representation marks……
STRUCTURE
Structure என்பது different data types ……
struct Student { int rollno; char grade; float mark; }; Object: Student s1; Values: s1.rollno = 101; s1.grade……
UNION
Union structure போலவே multiple members define……
union Data { int i; float f; char ch; }; Simple Concept Structure: i → separate memory f → separate memory ch……
CLASS
Class என்பது data members மற்றும் member fu……
Object: Student s; Representation Student object | +--……
RECORD
Record என்பது Pascal, database theory, programming language theory போன்ற contexts-ல் அதிகம் பயன்படுத்தப்படும்……
TUPLE
Python போன்ற languages-ல் tuple ஒரு composite collection. ……
STRING
String classification language-dependent. Conceptually string என்பது: Sequence of characters string name = "P……
All elements same type இருந்த……
int a[4] = {10, 20, 30, 40}; All elements: int……
Different types கொண்ட element……
struct Student { int roll; char grade; floa……
Composite | +----------------------------+ | | Homogeneous Hete……
int x = 10; Analysis: x ↓ 10 One value. Therefore: Scalar int x[3] = {10, 20, 30}; Analysis: x | +--- 10 +---……
Scalar: int x = 10; Conceptual memory: Address Object Value 1000 x 10 ஒரே value. Composit……
int a = 10; int b = 20; int c……
Array: int a[3] = {10, 20, 30}; Usually……
Scalar என்றால்: One variable = one logical ……
"Array is scalar." Wrong. Arra……
"Structure contains only same type." Wr……
"Character and string are same." Wrong. char ↓ sin……
"Composite means only array." Wrong. Composite inc……
[COMPARISON: SCALAR vs ARRAY] int x = 10; Sca……
Scalar நினைவில் வைக்க: S = Single Scalar ↓ Single Compos……
TRB / NET / SET exams-க்கு முக்கியமான points: Scalar type represents one value. Composite type contains multi……
Which of the following is a s……
Which is a homogeneous compos……
Which composite type can cont……
What is the basic difference between scalar and composite data types? Answer: Scala……
Scalar data type represents:…
Which is a scalar type?…
Which is a composite type?…
Array is generally:…
A structure is generally:…
Boolean stores:…
Which can combine int, char, ……
In C++, pointer type is class……
Which one is an example of a ……
Which statement is correct?…
Identify scalar or composite. 1. int age = 25; Answer: Scalar 2. float salary = 25000.50; Answer: Scalar 3. c……
DATA TYPES | +--- SCALAR | | | +--- Integer | +--- Floating Point | +--- Character | +--- Boolean | +--- Enum……
Scalar Data Type என்பது ஒரு individual value-ஐ represent செய்கிறது; int, float, char, bool போன்றவை examples. ……