'User input' Challenge: Question about the actual input


I’ve looking around for this but can’t find the answer and apologies if it’s really obvious but where is the actual input entered in this challenge?

i.e. Who is cool? Mikey
Mikey is cool!

Where is ‘Mikey’ input? All I get as output is “Who is cool?”

#include <stdio.h>

int main(int argc, const char * argv[])

{   printf("Who is cool? ");
    const char *name = readline(NULL); 
    printf("%s is cool!\n\n", name);
    return 0;


I am new to this but will take a try at answering your question.

  1. The line in your code below is telling the program to stop running until you provide input.

const char *name = readline(NULL);

  1. In Xcode I had to move my cursor into the execution window (lower right corner) and type the input where I wanted the countdown to start and hit the Return key.

The program then continued execution.

Hope this is helpful.