[go: up one dir, main page]

0% found this document useful (0 votes)
38 views7 pages

Session 1+ 2 Eljoker

The document discusses the fundamentals of C programming including preprocessing, functions, statements, variables, data types, assignment, comments, variable declarations, and setting up a C programming environment in Eclipse. It also provides examples of using floats, input/output, and basic math operations in C code.

Uploaded by

Ahmed Elsafy
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)
38 views7 pages

Session 1+ 2 Eljoker

The document discusses the fundamentals of C programming including preprocessing, functions, statements, variables, data types, assignment, comments, variable declarations, and setting up a C programming environment in Eclipse. It also provides examples of using floats, input/output, and basic math operations in C code.

Uploaded by

Ahmed Elsafy
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/ 7

EJokee Embe ddeà lCI | Se SSion 1|

4a fund.om entls
PYeProceS Sing bíectvestintude oAllalkalcLo
|2 func at ion

statementS
#inclusc <staio.h>
int m a n )

PrintEToc,or not tocn;


Yeturn oj Vawe slel
Zers m))

GomeiLing Linkin 1(stefs) Machine CodeAlg

A. ofile aofileglo)3l
Aimnglohj ect
I3 Linkln9Cina Step( (ile tile

Li bYary tanctisnlikelrintt)
The&cc Coniler
Most PoPalb C comfiler
7LDE(Tntegrates DevcLomet EnVirahet)

allwus
error)
Deit( hihtt the the thor contanthe

2Comeie
Link
execte
5and even de bug
Comelle ools (edito> linker)

XGeneYal form of
int mainl Uoi)
begin
Jend

Y #0ncludecstJio: h
Libre g
C Ye ys on Ihkae kels
Keys láaicJi
OaireetivesandsIhot be9in witht. knowas aivectives
Comm
divective iies
eero ceSor Jlas, (oneli ne)oy ,y

(funcation s
Fun cotion f a l into
+Wo Cat egaies
thase written b roqramma
Those provided as

nate

StatementS
a command to be e Xecuted Wheh he frogram ram

Vartables ana Assiqnment Uleesyaia


MoMery e l ) data Hetor9.
detyke
int Char

264te 469e 1 te
int n u m 5 ; nymi
Cloat num2 S.5?; 5 26Yc
num2
char capital A 5S3 46/e
Comment.k
Way tor ComYn e ntt

Variable tust be decloedililoiis


9yee of the Variable y flot
t

0 nt num1; dec

dectarottons

Volue
Sesslon 2 |
u l l Setup

S et ueJove TRe JOKS Bin


coH fat EYomcPro5 Yomfile-)ava
PanaHstem SecuritSSteh
9oTo Control
Variablks
tnviro mmment
AVanCe) SySten seting
Poth New PastTDK Pst
royronfle javaJRSSin
) oPy lath fYom C-
and ast ti Pttn using the Same way above

SetuP 9ccaccePtcHInw
( Set uP ÉCipse
Project

rojectWewsouree Saurce
2) Right clik on LauY
aaa,c

e Psje ct t Save
file- Sove
bbileo1/ct+B
Eloatsul iht
it x= 5,1= 4y2=2
Eloat *= 5-5,y+4.3, Z= 2.2 ;

int S

exn
t inclurrcst ioh 2
int mainl )

intnu h1, mum2


PrinFf( Eter numi ") i.

ScanE(°dod,y numi);
Printr( Enter num2 ")
fELush (stà eut)
Seanf(" do", num2)j
Prirt (Thesum- %d " nutni4 mun2 )

You might also like