summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/OR_PRACTICAL_C/04_2.c
blob: 5fa81b3cc8399ef526da49505525a2a6c4237e20 (plain)
1
2
3
4
5
6
7
8
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);
}