/ in c string code example Example 1: declare string in c char string[20]; Example 2: read string c char name[20]; scanf("%s", name);