Answers for "how to make string in c"

C
0

how to store string in c

char str[4] = "GfG"; /*One extra for string terminator*/
Posted by: Guest on March-29-2021
0

string in c

#include <stdio.h>
int main()
{
    char name[20];
    printf("Enter name: ");
    scanf("%s", name);
    printf("Your name is %s.", name);
    return 0;
}
Posted by: Guest on September-04-2021
-3

string in c programming

#include <stdio.h>
int main(){
    char name[10];
    printf("What is your name: \n");
    scanf("%s", name);
    printf("Hello, %s!\n", name);
}
Posted by: Guest on April-19-2021

Code answers related to "how to make string in c"

Code answers related to "C"

Browse Popular Code Answers by Language