0% found this document useful (0 votes)
12 views5 pages

01 May 2024 Notes

Uploaded by

sami.lajwan3121
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views5 pages

01 May 2024 Notes

Uploaded by

sami.lajwan3121
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

1May

En hy point
Basics of Ctt first int main)
Program.

Programmi ng hanguag CPp ile

ctt ’ sasing Pont ’ main (J


Compilation ProcesSo func ion name
Arst<pp
Sint main () -fun ction
H"lL ttuon func
tgpe
abj ’MUF
is pl
ode why ehurm'o?
Linkny 0 ’ &utcesg ful execution
40ibulbnitt
vold main (J
late
Where to code?
VS code replit-com
X- Code
CodeBlocks
Dev (+.t +includc ci0stoam >
Quick (onmpilerguenan pnlz
in t main ()
IDE(Tnte yrad Devloprmut
Environ ment )

het's wite down the 13+

-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)

(out ce Hello" e endl;


include Li0sbeam> ehum
- Libray which lontaing input ,
ouiput velated fun chtßnglíi Bucst
- Jo include In your (urnt (ode
use tinclude ciothram

tincludee iost an)


tinclude <isheam> Befon Stayting (xecutt on include
using namespace stdj 4le

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)

Input ’ cin >> namedt


renory
name

yvaiabie Datatyp e
wwde knd of data
Ly 812 0f datq

ctt Data typs


VarH able’ named memoy locati en
%Talking Age as inputbegkn
priniivt Derived
l int aqt ;
yvoriobie name
vo bjable dec latation
primíive
serdeini
Next cIcsy

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)

You might also like