diff options
Diffstat (limited to 'reference/C/CONTRIB/OR_PRACTICAL_C/04_2.c')
-rw-r--r-- | reference/C/CONTRIB/OR_PRACTICAL_C/04_2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/reference/C/CONTRIB/OR_PRACTICAL_C/04_2.c b/reference/C/CONTRIB/OR_PRACTICAL_C/04_2.c new file mode 100644 index 0000000..5fa81b3 --- /dev/null +++ b/reference/C/CONTRIB/OR_PRACTICAL_C/04_2.c @@ -0,0 +1,9 @@ +#include <string.h> +#include <stdio.h> +char name[30]; /* First name of someone */ +main() +{ + (void)strcpy(name, "Sam"); /* Initialize the name */ + (void)printf("The name is %s\n", name); + return (0); +} |