Inputting string

 #include<stdio.h>


int main(){

    char s[34];

    printf("Enter your name: ");

    scanf("%s", s);

    printf("Your name is %s", s);

    return 0;

}

Comments

Popular posts from this blog

Snake game.c

Type declaration

Array with function