C Coding Cheat Sheet
Libraries totalnounitsprinted 1 forlinecontinuation
smtdithihhstdwb.tn
I µnodecimals H 1forcomments
do statements whiteKexpession
stung.to o3.2erfexponertform
r 7 e04
loopuntilcondition to
dowhile nolongersatisfied forkstis caps cst2 statements
senama.io
5uestafTeehfwweefoop ftgmtmIf7E.skhzfaEnIfo7pe.gii.iitd
hiee eapess.ms statement Ihnen
weknowhowmany
times toperform loop
Files
f user input or hard
FILE fid
fid fopen l txt C Programming coded or resultof
equation
fclose fid
return O Arrays variablename
Yi www.onmfikcountgigasmtaegtsfqqonthvdhentents
µ prints l to
µ b lwt openforreadtwiute assignvariableto4th t
overwrite entryofarray2 scarff fo b
rt y typeofvariable
startatbeginning
Globalvariable
arraychangedby aswaiting If double
fprintf f NULL all functions
tovariablesnot f float
fscarf files fthoop readingfrom d integer
c character
feof checkendof
filenotreached
µ definelocal s
variables
forfunction break if criteriamet then
thatare wipedwhen breakfromloopFunctions functionends eg if I
outputtype cfunc.name Hypeand break i
localvariableallocations
statements
return outputvalues
Trouble dist doubleH doubleyldoublex2 double
y2 Calling Function
double d
d sqrt N x2 X1 x2 t lyl y2 yl y2
return d
T returnedvariablevalued stored and
usedon global system