Added book examples
This commit is contained in:
13
C4/declare_a_string.c
Normal file
13
C4/declare_a_string.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
int main(void)
|
||||
{
|
||||
// A variable to store a name (maximum 49 characters)
|
||||
char Name[50];
|
||||
|
||||
// Declare multiple strings on the same line
|
||||
char AddressLine1[100], AddressLine2[100], PostCode[10];
|
||||
|
||||
// all done
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user