0
In C, is there string data type? If no, how to store a string value?
3 Respostas
+ 1
it has an access specifier “%s” which can be used to directly print and read strings.
let's see with example 👇 👇
#include<stdio.h>
int main()
{
// declaring string
char str[50];
// reading string
scanf("%s",str);
// print string
printf("%s",str);
return 0;
}