Answers for "ways to declare string in c"

C
-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 "ways to declare string in c"

Code answers related to "C"

Browse Popular Code Answers by Language