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

14
C16/alloc_example_2.c Normal file
View File

@@ -0,0 +1,14 @@
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
// Declare an integer array and an integer pointer
int *pData;
pData = calloc ( 10000 , sizeof (float)); // No warning
pData = (float *)calloc ( 10000 , sizeof (float)); // Warning
return 0; // Exit
}