C language get the first character of a string

C language get the first character of a string

In C, the index of the first element of an array is 0

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char const *argv[]) {

	char c[20] = {'l','a','u','t','t','u','r','i','!'};

	printf("%c",c[0]);
	return 0;
}
Sou‮.www:ecr‬lautturi.com
Created Time:2017-08-29 09:56:34  Author:lautturi