0
In C, is there string data type? If no, how to store a string value?
3 Answers
+ 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;
}