01 May 2024 Notes
01 May 2024 Notes
En hy point
Basics of Ctt first int main)
Program.
-CP
githu b-com kunalbandale (P SA-Jourmey +includc ci0sheam>
pacprdn 0
dlirctve
load t j0Jbram file
Struchur 0f (+t (ode
nclude Ciotheqnm >
phproCyoY
int main)
irelude (iothetorr
S4d;t (out ee "Hello wod!
int mat n)
namco pa ce
Cout abcil
Modle/ Cout
out
0t201> 3bAibnitt
using namuspaa tdj
B+d i:(out
int moin )
4jncludc ciostea m>
using nanapae Btd ;
int majn ()( keywords:- Spei o wovds
Jened wordse
(out ce Toh lai se hai App log';
Ktum 24 opexator
’ nclosed in double
quote shig
endl Net li
ompiee Code i
Input/Output in (tt
4#nclude Ztt i05tean>
Output ’ print ’ coutce using rono paa ttd;
int moln) 4
int age
NOte
/ comment in c++
(Ignoed by tompiley)
yvaiabie Datatyp e
wwde knd of data
Ly 812 0f datq
datatype
cout cc "Enter Aqc:! - intcq er tVGg0, -Ve
cin >> agc j’taing Input frorn
(int) ’4 byte
-float
doublc
cout ce "Agt Is :"2e age c ndlj double lee andar Zada prusjen
pawgo .
- char ’ chara (ter (a-Z,A-Z, _
3
|NOk; udy ASC|| tab le
Tnteger
/ vaiable decloraien dn sign e ange ’0’2-1
int age j
/ vanable inttialsati on
int aqe = 20 j
8hort
characey
-327683276 7
char ch = la';
tHd to print 32469 gcuG
’ Si0gle inverted Comma ce
andar characY humo ha ahume le vapas avo ge
tras y -32768 pint hova
char ch ab cd ef!
When compile f is pi but
ik not
gcneric dep endt en 2
2
Compilcr to CompikY |Macin to
Madim
floatiAAg
P
double d =126O468j unsiged ’ 0, tve
More on Datapes
Biae 0f data type s yitem
dependen+.
SiZe Of C)’ used to che ole sa
of datatypc
Grood Psacice foy (oder ttome Woxle
NGming (onveni0nsi 32bit VS 64 b1t
- J+ Ahould begin with an alphabeh Type (at tHng
- Thee may be mot thon one alphabe
but without any Spares t )
-Digtk may be used but only
ater alphabet
- NO \aywords should be wed Summany
- No Symbols Sho uld be used
. ctt is Cane senstt ve
lanquaqe What is programming Langu49c
(ompiliaion proce s3
Whest to Cod e
Brain Tearer #1 fist p 9ram
- Buctu of (tt (ode
65
P5-4byk I/0 Bttam
’primítHve
’1 byto Data ty pes Derive
user defne
true
How data ís t0nd 9 bool
+Ve oY -Ve intgts ?
-G G0d practice
Binay
de aha - Braln Teaser+1
fooS
2
(101)
2. 3
(10)