Showing posts with label strings. Show all posts
Showing posts with label strings. Show all posts

Tuesday, March 9, 2021

String name = get_string("What is your name: ");

 using cs50's get_string function:


#include <cs50.h>

#inlcude <stdio.h>


int main(void)

{

        String name = get_string("What is your name: \n");

        printf("Hi %s\n" , name);

}


source: cs50