This repository has been archived on 2023-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
VSMechatronics/Exercises/C4/declare_a_string.c

13 lines
263 B
C
Raw Normal View History

2022-04-08 15:12:38 +00:00
#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;
}