Added book examples

This commit is contained in:
Louise Brown
2022-04-08 16:12:38 +01:00
parent 5b205092a7
commit 1c0a9e7b6a
59 changed files with 1381 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
// Declare and populate an integer array
int MyArray[10] = {2,4,6,8,10,12,14,18,20};
// Declate an integer pointer
int *pI;
// Get the start address by asking for the address iof array item [0]
pI = &MyArray[0];
// Or, use the fact the array name on its own is the start address of the array
pI = MyArray;
return 0; // Exit
}