Use %s to specify the string format
/*
print a string in C language
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
// declare and initialize a string
char str[] = "lautturi";
// print the string
printf("%s", str);
return 0;
}Sourcew:ww.lautturi.com