Using gets() and puts()

 #include<stdio.h>


int main(){

    char s[34];

    printf("Enter your name: ");

    gets(s); 

    puts(s); 

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

    return 0;

}

Comments

Popular posts from this blog

Snake game.c

Type declaration

Array with function