









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Hint: Do you really need to keep all the data around?
int float char Sizeof() type conversion
Types Arrays One-dimension array Multi-dimension arrays
happens when (usual arithmetic conversions)
operands are of different types
right hand side does not match result of the left handside
argument declaration and invocation
return type
int Æ float
float Æ int
long Æ int
expression
Use of casting to get the value you want
Use of casting to avoid overflow
Change once, effective all
can be used anywhere as synonym of original type
Obey scope rule
0-based index Out of bound problem Traversing through elements Array initialization sizeof(a)/sizeof(a[0]) Supermarket problem (problem 2) inhomework 2
More about Types Array One-dimension array