C Language Programming – INTRODUCTION
C language Programming is a mid-level, statically typed, general purpose, imperative programming language which follows procedural paradigm.
C Language Programming –ย HISTORYย
- C language programming languag first released in 1972
- It was developed by Dennis Ritchie at bell laboratories located in USA.
- Dennis Ritchie is known as the founder of C
- It was developed with the aim of developing UNIX os.
- C is the successor of B language
- C is written in assembly language
- C took several features from its predecessors but also incorpated some unique & new features by its own too.
- C is the most widely used and popular System Programming language.
PROS
- C is the mother of most of the modern languages cause it inspired syntax, concepts, features etc.
- Even after being a grandmother language by age many programmers are in love & several has crush on C, C was that modern girl who was way ahead of her friends intellectually & physically. Meaning, even at that stone age C provided a quite decent set of inbuilt functionalities in the C Library.
- The procedural way of writing code makes debugging, maintenance, and testing easier.
- Due to C being a mid-level lang it gives u that extra contol over computer allowing u to pass more precise instructions than high-level langs & also giving that ease of writing, understanding, debugging and maintaining the code.
- It’s the fastest in the array of popular & widely used languages due to being a mid-level lang.
- It’s portable
- C is a structured programming language meaning the whole program is made up of small, separate & structured functions or blocks. Collection of these blocks makes a complete program. This block-based structure makes program debugging, testing and reading easier.
CONS
- Currently most of the modern languages have OOP paradigm but C only has procedural paradigm reducing its flexibility & downgrading developer’s love for C cause currently OOP is loved & desired by most of developers.
- The fundamental structure of a language is designed so carefully by keeping the aim & future plans of language in mind because future addition of features in the language solely depends on it’s fundamental structure, every new feature must align properly with the fundamental structure otherwise a bug will originate & if its big enough then it might break the entire language. Due to C being an old language its fundamental structure is also old blocking it to add any new modern feature into the language.
- Exception Handling is so vital feature that every modern language must have it but that’s not the case with old languages and C is not an exception. C doesn’t offer any exception handling feature(or almost don’t offer) which makes development tough.
- C doesn’t have any runtime checking mechanism, meaning it doesn’t check for errors while the code is executing or running. This thing is a big drawback cause even a developer’s small mistake may lead to a runtime based error reducing UX.
C Language Programming | Definition | History
APPLICATIONย
- It’s still considered the best lang to develop system softwares because system softwares needs to have close contacts with hardware & C manages to do that very well.
- Best for developing compilers & interpreters because their priority is speed & due to C being a mid-level lang it compiles to binary faster than any other high-level lang.
- Best for developing OSs due to its low-level language features.
- One of the best lang for database development due to its low-level language features (mainly speed & memory management)
- One of the best lang for embedded programming due to its low-level language features(mainly close control over hardware).
๐๐ข๐ ๐ฃ๐๐๐๐ง๐๐ข๐ก ๐ฃ๐ฅ๐ข๐๐๐ฆ๐ฆ
There are 4 steps included in the compilation process of a C sourcecode file
EXPRESSION & OPERATORย
EXPRESSION –
Any piece of code that evaluates to a value. An expression “might” contain 1 or more of these things – [ variables, literals, operators, function calls ].
EXAMPLE โก
โ
71 – 70 / 7 + 0.2 * 13 โก 63.6
โฌ โฌ
piece of code โก value
โฌ โ๏ธ
expression โฉ
โ
a = 3
b = a != 2
print(b) โก 1 (true) 3 โก Expression
variable a โก Expression
variable b โก Expression
a != 2 โก Expression
๐๐ก ๐ ๐ง๐๐๐ฅ๐ ๐๐ฅ๐ ๐ฐ ๐ง๐ฌ๐ฃ๐๐ฆ ๐ข๐ ๐๐ซ๐ฃ๐ฅ๐๐ฆ๐ฆ๐๐ข๐ก๐ฆ –
๐๐ฅ๐๐ง๐๐ ๐๐ง๐๐ ๐๐ซ๐ฃ๐ฅ๐๐ฆ๐ฆ๐๐ข๐ก – An expression which evaluates / returns a numeric (int or decimal) value. They are used to perform mathematical operations using arithmetic or assignment or increment/decrement operators or all of them together.
๐๐๐๐๐๐๐ โก
a = 1
print ( a *= 9 + a * 1.381 – 81 % 16 + ++a -7 )
*variable * a โก Ar expression
1 โก Ar expression
data inside print โก Ar expression
๐ฅ๐๐๐๐ง๐๐ข๐ก๐๐ ๐๐ซ๐ฃ๐ฅ๐๐ฆ๐ฆ๐๐ข๐ก – An expression which is constituted of condition/s which evaluates to 1 if condition/s is True and 0 if False. They are used when decision making needs to be done.
๐๐๐๐๐๐๐ โก
โ
if (25 > 19) // (true)โก 1
print(“hello”)
โ
(71 != 1) <= 0 โก 0
โฌ
1 (true)
โฌ
1 <= 0
โฌ
0 (false)
C Language Programmingย
๐๐ข๐๐๐๐๐ ๐๐ซ๐ฃ๐ฅ๐๐ฆ๐ฆ๐๐ข๐ก – Combination of 2 or more relational expressions. This expression is constituted of 2 or more conditions which evaluates to 1 if condition/s is True and 0 if False.
They are used when complex decision making needs to be done.
๐๐๐๐๐ก๐ง – A device or software that Requests Services from the Server is called client.
๐ฆ๐๐ฅ๐ฉ๐๐ฅ – A device or software that Provides Services to the Client is called server.
๐๐ฃ๐ – Application Programming Interface. A program which acts as a Middleman to make communication possible between the Client & the Server.
โ It receives the request from the client
โ It explains(interprets) the request to the server
โ It receives the service from the server
โ It explains(interprets) the request to the client
API’s make it way easier & efficient for the client to communicate & use server.
๐๐๐ง๐ ๐๐ข๐ฅ๐ ๐๐ง – A Different, A Unique way of Representing data.
๐ง๐๐ซ๐ง ๐๐ข๐ฅ๐ ๐๐ง – A type of data-format which represents data using plain text characters.
๐๐ฆ๐ข๐ก – A text-format.
๐จ๐ฆ๐๐ฆ ๐ข๐ ๐๐ฆ๐ข๐ก :–
— The data which is transferred back & forth between Server & Client is stored in a json file
— JSON is used as a configuration file in apps & games
— JSON is used as a database
๐๐๐ก๐๐๐๐ง๐ฆ ๐ข๐ ๐๐ฆ๐ข๐ก :–
— Lightweight
— Easy to Read
— Easy to Write
— Integrates easily with most of the languages
๐๐ฆ๐ข๐ก ๐๐๐ง๐-๐ง๐ฌ๐ฃ๐๐ฆ :–
— String
— Number(integer+decimal)
— Boolean
— Null
— Array
— Object
๐๐ข๐ก๐๐๐ง๐๐ข๐ก๐๐ ๐๐ซ๐ฃ๐ฅ๐๐ฆ๐ฆ๐๐ข๐ก – It’s a combination of 1 condition based expression and 2 expressions. They are used when condition based task-execution needs to be performed. It’s referred as concise form of “if-else”.
๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ – A symbol which performs a specific operation on operand / operands.
๐๐๐๐๐๐๐ โก +, /, >=, ||, %= etc
๐ข๐ฃ๐๐ฅ๐๐ก๐ – Part of program on which operation is performed.
๐๐๐๐๐๐๐ โก 18 + atoi( “61” ) / 1
โฌ โฌ โฌ
operand op op
๐จ๐ก๐๐ฅ๐ฌ ๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ – Operators which act on a single operand.
๐๐๐๐๐๐๐ โก ++ — ! etc
๐๐๐ก๐๐ฅ๐ฌ ๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ – Operators which require 2 operands to act.
๐๐๐๐๐๐๐ โก + >= || == etc
๐ง๐๐ฅ๐ก๐๐ฅ๐ฌ ๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ – Operators which require 3 operands to act.
๐๐๐๐๐๐๐ โก ?:
C Language Programming – ๐ง๐ฌ๐ฃ๐๐ฆ ๐ข๐ ๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ๐ฆ –
- Arithmetic โก Arithmetic Expression
- Relational
- Logical
- Assignment โก Arithmetic Expression
- Increment and Decrement โก Arithmetic Expr
- Conditional
- Bitwise โก No particular belongings
- Special โก No particular belongings
๐ก๐ข๐ง๐ : Bitwise & Special operators don’t belong to Arithmetic Expression category because the operators they contain aren’t mathematical operators & Arithmetic == Mathematical calculation == Mathematical Operators.
๐๐ฅ๐๐ง๐๐ ๐๐ง๐๐ ๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ๐ฆ- Operators used to perform mathematical operations. It contain both binary & unary operators.
๐๐๐๐๐๐๐๐ โก + – * / % ++ —
๐ฅ๐๐๐๐ง๐๐ข๐ก๐๐ ๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ๐ฆ – Operators used to compare operands with each other. It contain binary operators.
๐๐๐๐๐๐๐๐ โก == != <
๐๐ข๐๐๐๐๐ ๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ๐ฆ – Operators used to attach several conditions / relational expressions together. It contains both unary & binary operators.
๐๐๐๐๐๐๐๐ โก && || !
๐๐๐๐๐๐๐ โก
๐๐ฆ๐ฆ๐๐๐ก๐ ๐๐ก๐ง ๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ๐ฆ – Operators used to assign result of an expression to a variable. It’s a unary operator.
๐๐๐๐๐๐๐๐ โก = += -= *= /= %= <<=
= &= ^= |=
๐๐๐๐๐๐๐ โก
b = 1.2
c = “”
โ a = b-6*9%1+0.2
โฌ โฌ โฌ
variable assignment expression
operator
โ c += “hi mummy”
โฌ โฌ โฌ
variable assignment expression
operator
๐๐ก๐๐ฅ๐๐ ๐๐ก๐ง & ๐๐๐๐ฅ๐๐ ๐๐ก๐ง ๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ๐ฆ – Operators used to add or subtract ‘integer 1’ from a variable. It’s a unary operator.
๐๐๐๐๐๐๐๐ โก ++ —
๐๐๐๐๐๐๐ โก
int a = 1
float b = 3.121
โ a++ โก 2
โ b++ โก 4.121
๐๐ข๐ก๐๐๐ง๐๐ข๐ก๐๐ ๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ๐ฆ – This operator is used when condition based task-execution needs to be performed. It’s a ternary operator.
๐๐๐๐๐๐๐๐ โก ?:
๐๐๐๐๐๐๐ โก
a = 2 ;
b = 1 ;
( a > b ) ? a– : b++ ;
โฌ โฌ โฌ
condition task 1 task 2
condition
print(a) โก 1
print(b) โก 1
C Language Programming | Definition | History
๐๐๐ง๐ช๐๐ฆ๐ ๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ๐ฆ – Operators used to perform operation on bits. It contain both unary & binary operators. Only integers can be operands of these operators. Performing operations on bits is known as bit-level programming.
๐๐๐๐๐๐๐๐ โก & | ^ << >>
๐ฆ๐ฃ๐๐๐๐๐ ๐ข๐ฃ๐๐ฅ๐๐ง๐ข๐ฅ๐ฆ – Operators used to perform memory related tasks.
๐๐๐๐๐๐๐๐ โก & * sizeof (operand)
๐๐๐ง๐๐ฅ๐๐ – A valid data which is fixed (can’t
change at any cost) is a literal.
๐ฉ๐๐๐๐ ๐๐๐ง๐ – String, Char, Int, Float/Double.
๐ง๐ฌ๐ฃ๐๐ฆ ๐ข๐ ๐๐๐ง๐๐ฅ๐๐ –
- Char
- String
- Int
- Float/Double
๐๐๐๐๐๐๐ โก “hi”, ‘c’, -17, 1.32 etc
๐๐ข๐ก๐ฆ๐ง๐๐ก๐ง – Variable whose value remains same throughout entire execution of program is a constant. Both Constants and Normal variables store literals as value but the difference is normal variables can replace those literals with other values/literals whereas constants can’t.
๐๐๐๐๐๐๐ โก
โ const int a = 1;
Here variable “a” is a constant thus it’s value will remain 1 throughout the entire execution of the program.
โ int b = 1;
Here variable “b” is a normal one thus it’s value can be changed/replaced throughout the execution of the program.
- DATA STRUCTURE —
A way or method to store, manage and use data efficiently.
OR
A thing which can store data inside it and which allows users to perform wished operations or tasks using it’s data.
C Language Programmingย – TYPES OF DATA STRUCTURES–
:: BUILTIN DATA STRUCTUTES– List,Tuple, Dictionary etc
:: USER DEFINED DATA STRUCTURES– Stack, Queue etc.
- Dynamically typed languages – These are a kind of language in which the data-type of a variable’s value, function’s return value, data-structure’s value isn’t fixed(they can be changed anytime) & we don’t need to explicitly define types of these things too.
EX- JS, Python etc - Statically typed languages – These are a kind of language in which the data-type of variable’s value, function’s return value, data structure’s value is fixed(meaning you can’t put a value of int if you specified a variable to be string while it’s declaration). Here you need to explicitly define types of these but in modern static typed langs most of them have a feature named type inference which basically means that “the compiler will set the type of your variable or whatever by simply looking at its value” so that u don’t have to write it.
EX- Dart, Java etc
a = “sam”
a = 6.21
In a dynamically typed lang it’s entirely possible to put value of any data type in variables or whatever whenever u wish as shown above but in a statically typed language you have to first change the type of your variable or whatever it is to the type of value you wanna store as shown below.
a=”sam”
float(a)
a=6.21
. ๐๐ฅ๐ฅ๐๐ฌ
An array is a data-structure whose properties are :-
(i) Fixed in size (can’t add or remove elements from array, can only update them).
(ii) All elements have the same data-type.
(iii) It’s elements are stored at contiguous memory locations.
๐๐ ๐ฃ๐๐ฅ๐๐ง๐๐ฉ๐ ๐๐๐ก๐๐จ๐๐๐ – how – the process
๐๐๐๐๐๐ฅ๐๐ง๐๐ฉ๐ ๐๐๐ก๐๐จ๐๐๐ – what – the goal
๐ฆ๐ฌ๐ฆ๐ง๐๐ ๐ฆ๐ข๐๐ง๐ช๐๐ฅ๐ –
๐๐ฃ๐ฃ๐๐๐๐๐ง๐๐ข๐ก ๐ฆ๐ข๐๐ง๐ช๐๐ฅ๐ –
๐ฉ๐๐ฅ๐ง๐จ๐๐ ๐ ๐๐๐๐๐ก๐ –
๐๐ข๐ ๐ ๐จ๐ก๐๐ง๐ฌ – A group of people who contributes in the development of a project
in literally any way.
๐๐ – People who are contributing in Flutter’s development in any way are the part of “Flutter Open Source Community” or simply “Flutter Community” because flutter is open-source whereas people contributing to a closed-source project are referred as “TechnologyX Closed Source Community” or “TechnologyX Community”, Flutter Stackoverflow community, Flutter GitHub, Flutter Discord.
+
When 2 โฅ people with the same interest form a group by coming together, they form a community. A community is a group of people who share similar interests.
๐๐ – โข “Flutter” YouTube
โข “r/FlutterDev” Reddit
โข “flutter” GitHub
๐๐๐๐ ๐๐ซ๐ง๐๐ก๐ฆ๐๐ข๐ก –
๐๐ฃ๐
๐๐ฃ๐
๐๐ซ๐
๐๐ฃ๐ฃ
๐๐ฅ๐ –
{
๐๐ ๐๐๐๐๐๐ ๐ฆ๐ฌ๐ฆ๐ง๐๐ – Computer software nested inside a computer hardware is called an embedded system.๐ช๐ข๐ฅ๐๐๐ก๐ - Take physical input โก Perform task accordingly โก Give physical output ๐๐๐๐ฅ๐๐๐ง๐๐ฅ๐๐ฆ๐ง๐๐๐ฆ - โข They are designed to perform a very limited set of tasks or a single task. โข 3 things are must in an embedded system : ๐๐๐๐๐๐๐๐๐ : have memory chip + perform calculations . ๐๐๐๐๐๐๐๐ ๐๐ : Resposible for handling input-output operations in real time. ๐๐๐๐๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐ : Resposible for performing the actual function of product. โข Memory and Processor capacity is low as it only have to perform less tasks.
โข An embedded system has some kind of input
output device embedded in it.
โข An embedded system might be a standalone
product or part of a larger product.๐๐ ๐๐๐๐๐๐ ๐ฃ๐ฅ๐ข๐๐ฅ๐๐ ๐ ๐๐ก๐ - Creating application software + realtime os and merging these with the whole system so that it works properly OR software side development of embedded systems is referred as embedded programming. ๐๐๐๐๐๐๐ โก Car, Drone, TV, Digital Alarm, Missile, Fire Alarm, ATM, Smartwatch etc
}
๐๐ฆ๐ฆ๐๐ ๐๐๐ฌ ๐๐๐ก๐๐จ๐๐๐ –
๐๐ฆ๐ฆ๐๐ ๐๐๐๐ฅ –
{
๐๐ข๐ ๐ฃ๐๐๐ ๐ง๐๐ ๐ – The time during which source code file gets converted to an executable file.
๐ฅ๐จ๐ก ๐ง๐๐ ๐ – The time during which the executable file is getting executed or “running”.
๐๐๐๐๐๐๐๐๐๐๐ – The conversion of source code file to an executable file.
๐๐๐๐๐๐๐๐๐๐๐๐๐ – The transition of one language to another is called transpilation.
The tool which performs it is called transpiler.
๐๐๐๐๐๐๐ โก Head on to “COMPILATION PROCESS” of C
๐๐ข๐ ๐ฃ๐๐๐ ๐ง๐๐ ๐ ๐๐ฅ๐ฅ๐ข๐ฅ๐ฆ –
๐ฅ๐จ๐ก ๐ง๐๐ ๐ ๐๐ฅ๐ฅ๐ข๐ฅ๐ฆ –
.
}
๐ฆ๐ง๐๐ง๐๐ ๐๐ก๐ง – A piece of code that performs a task.
๐๐ซ๐ฃ๐ฅ๐๐ฆ๐ฆ๐๐ข๐ก – A piece of code that evaluates to a value. An expression “might” contain 1 or more of these things – [ variables, literals, operators, function calls ].
๐๐๐๐๐๐๐ โก
๐ฆ๐ง๐๐ง๐๐ ๐๐ก๐ง ๐๐ ๐๐ซ๐ฃ๐ฅ๐๐ฆ๐ฆ๐๐ข๐ก – Any piece of code that can be evaluated to a single value is an expression.
&
Anything that can’t be evaluated to a single value is a statement.
๐๐๐๐๐๐๐ ๐๐๐ – Names allotted to programming entities like variables, functions, data-types, classes etc inorder to identify them uniquely.
๐๐๐ง๐๐ฅ๐๐ – A valid data which is fixed (can’t
change at any cost) is a literal.
๐ง๐ฌ๐ฃ๐๐ฆ ๐ข๐ ๐๐๐ง๐๐ฅ๐๐ {in modern langs} –
โ Char
โ String
โ Int
โ Float
โ Boolean
Etc
EXAMPLE – “HI”, -62, 0.28, true, ‘j’ etc
C Language Programmingย
๐๐ข๐ก๐ฆ๐ง๐๐ก๐ง – Variable whose value remains same throughout entire execution of program is a constant. Both Constants and Normal variables store literals as value but the difference is normal variables can replace those literals with other values/literals whereas constants can’t.
๐๐๐๐๐๐๐ โก
โ const int a = 1;
Here variable “a” is a constant thus it’s value will remain 1 throughout the entire execution of the program.
โ int b = 1;
Here variable “b” is a normal one thus it’s value can be changed/replaced throughout the execution of the program.
{
๐๐๐ง๐ ๐ฅ๐๐๐๐๐ก๐ – Accessing data from memory.
๐๐๐ง๐ ๐ช๐ฅ๐๐ง๐๐ก๐ – Adding or Deleting data in memory.
๐ ๐๐ ๐ข๐ฅ๐ฌ – A physical device capable of storing data in it temporarily or permanently is referred as Memory. Fundamentally, Memory is an array of Bytes where each Byte has it’s own unique memory address.
๐ ๐๐ ๐ข๐ฅ๐ฌ ๐๐ฆ ๐ ๐๐๐ก๐๐ฌ ๐๐๐ฉ๐๐๐๐ ๐๐ก ๐ฎ ๐ง๐ฌ๐ฃ๐๐ฆ –
โ ๐ฃ๐ฅ๐๐ ๐๐ฅ๐ฌ ๐ ๐๐ ๐ข๐ฅ๐ฌ (Internal Memory) –
- This kind of memory is placed inside the device.
- It contains both volatile & non-volatile form
of memories.
DATA-READING โก Here data is directly shipped from RAM to processor for execution hence data-reading in primary memory(RAM) is faster than secondary memories. - Primary Memory is costlier than Secondary Memory. ๐ก๐ข๐ง๐ : Most of the modern day PCs have
replaced ROM with secondary storages like
SSD because it’s illogical to have a
separate memory storage for storing that
little data that’s why nowadays few people
put RAM only in Primary Memory category
thus they sometimes refer RAM by the name
Primary Memory. ๐ก๐ข๐ง๐ : RAM don’t store any data of its own, it
just stores data shipped from ROM &
secondary storages. All the files, programs &
data are stored in ROM & secondary storages
hence whenever they are read/opened by the
user/os that particular data’s copy gets
stored in RAM so that the user/os don’t have
to open that data from ROM/SECONDARY
STORAGES again & again because in case of
data reading ROM/SECONDARY STORAGES
are much slower than RAM. ๐๐ง’๐ฆ ๐๐๐ฉ๐๐๐๐ ๐๐ก ๐ฎ ๐ง๐ฌ๐ฃ๐๐ฆ – โ ๐ฅ๐ข๐ - It's a non-volatile form of memory which is used to store data permanently. Data stored remain as it is even after the device runs out of power. You can only read from this memory, can't write in it meaning data is only once written in it by it's manufacturers but after that it's not allowed. ROM is used to store only data (instructions) about OS's functionalities + working process or PC's on/off process or both. ๐๐๐ฆ๐๐๐๐๐๐ฌ ๐๐ง'๐ฆ ๐๐๐ฉ๐๐๐๐ ๐๐ก ๐ฑ ๐ง๐ฌ๐ฃ๐๐ฆ - โข MROM โข PROM โข EPROM โข EEPROM โข Flash ROM ๐ก๐ข๐ง๐ : In early days ROMs were only used to store data about OS's functionalities + working process or PC's on/off process or both but in most of the modern PCs ROM is replaced with secondary storages like SSD meaning ROM no longer exists.
- โ ๐ฅ๐๐ – It’s a volatile form of memory which is used to store data temporarily. Data stored gets permanently deleted as soon as
the device runs out of power. You can both
read & write in this memory. 100% of ur
personal data is stored in secondary storage
thus when you open a file, program etc then
a copy gets created of that particular data
of secondary storage and then that copy
gets loaded / stored into RAM.
๐๐ง’๐ฆ ๐ ๐๐๐ก๐๐ฌ ๐๐๐ฉ๐๐๐๐ ๐๐ก ๐ฎ ๐ง๐ฌ๐ฃ๐๐ฆ –
โข SRAM
โข DRAM
โ ๐ฆ๐๐๐ข๐ก๐๐๐ฅ๐ฌ ๐ ๐๐ ๐ข๐ฅ๐ฌ (Auxiliary Memory) –
- This kind of memory is a separate hardware which is placed inside the device or connected to the device from outside.
- Secondary Memory is always non-volatile form of memory.
DATA-READING โก Here, data in is indirectly shipped to the processor for execution, first, copy of the data of secondary storage gets loaded/written into primary storage(RAM) & then shipped to the processor for execution that’s why data-reading in secondary storages is slower than primary storages. - Secondary Memory is cheaper than Primary Memory.
๐๐๐๐๐๐๐ โก SSD, Pen Drive, DVD, Floppy Disk, Punching Cards etc.
๐ ๐๐ ๐ข๐ฅ๐ฌ ๐๐๐๐ฅ๐๐ฆ๐ฆ –
Memory == City
Data == A house
Memory address == Location of house in the city
Location of data in the memory is known as memory address of that data. Each Byte of data has it’s own memory address which the processor uses to find & perform operations on the data associated with the address.
๐๐๐ง – It’s the most smallest form of data that can exist in a computer’s memory. It’s an acronym of “Binary Digit”.
“Smallest unit to measure data in a computer’s
memory”.
Data which has occupied 1 bit of memory represents a single binary digit meaning in 1 bit either 0 or 1 can get stored.
๐๐ฌ๐ง๐ – The number of bits needed to store a single character of data makes up 1 byte. bits needed to create 1 Byte varies from hardware architecture to architecture but in modern times
most hardwares combine 8 bits to make up 1 Byte. An 8-bit Byte can represent 256 unique characters. Bytes are the smallest operable units of computer memory because bits separately can’t reperesent any valid data.
01100010 == 1 Byte
8 bits == 1 Byte ๐๐๐ง๐ ๐ ๐๐๐ฆ๐จ๐ฅ๐๐ ๐๐ก๐ง ๐๐๐๐ฅ๐ง
bit โก 0 or 1
Byte โก 8 bits
Kilobyte โก 1024 Bytes
Megabyte โก 1024 KB
Gigabyte โก 1024 MB
Terabyte โก 1024 GB
Petabyte โก 1024 TB ๐๐๐ง๐ ๐ข๐๐๐จ๐ฃ๐๐ง๐๐ข๐ก ๐๐๐๐ฅ๐ง
char –
int –
float –
เคเคฐ เคชเฅเฅเค โ
- เคฌเคเค 2024 | Budget 2024 in Hindi
- Adhigam Ke Siddhant in Hindi | เค เคงเคฟเคเคฎ เคเฅ เคธเคฟเคฆเฅเคงเคพเคเคค | Easy Chart
- Uptet Psychology Notes in Hindi Pdf | เคธเคฟเคฆเฅเคงเคพเคเคค เคเคฐ เคเคจเคเฅ เคชเฅเคฐเคคเคฟเคชเคพเคฆเค | direct pdf link
- BPSC TRE 3.0 | เคเคฒเฅเคฆ เคเคพเคฐเฅ เคนเฅเคเคพ เคจเฅเคเคซเคเฅเคถเคจ | Latest News
- ALL NOTES CLICK HERE เคชเฅเคฐเคพเคฅเคฎเคฟเค เคเคฟเคเคฟเคคเฅเคธเคพ เคเคตเค เคธเฅเคตเคพเคธเฅเคฅเฅเคฏ (First Aid and Health)
- Best Study Methods for Exams
keyword
C Language Programming ย Programmingย C Language ProgrammingC Language Programmingย C Language Programmingย C Language Programming C Language Programmingย C Language Programmingย C Language ProgrammingC Language Programmingย C Language Programmingย C Language Programming C Language Programmingย C Language Programmingย C Language ProgrammingC Language Programmingย C Language Programmingย C Language Programming C Language Programmingย C Language Programmingย C Language ProgrammingC Language Programmingย C Language Programmingย C Language Programmingย
ย
- History of Champions Trophy | เคเฅเคเคชเคฟเคฏเคเคธ เคเฅเคฐเฅเคซเฅ เคเคพ เคเคคเคฟเคนเคพเคธ (2025)
- เคฌเฅเคฆเฅเคงเคฟ เคเฅ เคชเฅเคฐเคฎเฅเค เคธเคฟเคฆเฅเคงเคพเคเคค, เคฌเฅเคฆเฅเคงเคฟ เคฒเคฌเฅเคงเคฟ, เคฌเฅเคฆเฅเคงเคฟ เคชเคฐเฅเคเฅเคทเคฃ | Major theories of intelligence, Intelligence quotient, Intelligence tests | latest 1
- เคตเคพเคเคเฅเคคเฅเคธเคเฅ เคเคพ เคธเคพเคฎเคพเคเคฟเค เคตเคฟเคเคพเคธ เคเคพ เคธเคฟเคฆเฅเคงเคพเคเคค | Vygotsky Theory of Cognitive Development | 2024 Easy
- Moral Development Theory of Kohlberg | เคเฅเคฒเคฌเคฐเฅเค เคเคพ เคจเฅเคคเคฟเค เคตเคฟเคเคพเคธ เคเคพ เคธเคฟเคฆเฅเคงเคพเคเคค | 2024
- Heredity and Environment | เคตเคเคถเคพเคจเฅเคเฅเคฐเคฎ เคเคตเค เคตเคพเคคเคพเคตเคฐเคฃ | Best Notes for CTET & TET