fraction x base^exponent (IEEE 754) [We can't express every number with base 2]char asd [8] = "asdasd"; ==> asdasd__ char asd [8] = "asdasd"; ==> asdasd\0 end of the string.string asd = "asda";typedef, enum,enum Days {Mon, Tue, Wed, Thu, Fri, Sat, Sun};array is a type constructor.
int A[5]; it will fiexint foo() { int A[10] };int foo(int size) { int A[size] };int A[3], subscript ranges can be larged dynamically. int A[6] = 0; we can assign something like that.-------
100 - A[0]
104 - A[1]
108 - A[2]
112 - A[3]
116 - A[4]
-------
Adress calculation will depend on row approach.
a : [ 1 2 3
4 5 6 ]
a[0,0] = 1
a[1,0] = 4


Formulas:
$$ address(A[j, k]) = address(A[0, 0]) + (“no of rows before j” ∗ “size of a row”) + (k ∗ element size) $$
$$ address(A[j, k]) = address(A[0, 0]) + (j ∗ element size ∗ R) + (k ∗ element size) $$
struct foo()
{
int a;
char b;
double d;
}
struct foo x;
x.a = 12;
union MyUnion {
int i;
char c;
}
MyUnion x;
x.i
a[0]
a[1]
a[2]
a[3]
a[4]
Example:
int a[5];
int *p;
int b;
p = a; // ==> a[0]
p = p+1 // ==> a[1] increment number of bytes
Reference Types: Automaticcly deference
This was the end of the blog post. You can reach me via email umusasadik at gmail com