Console in CLion won't print line after scaning input, but in iTerm after compiling it all works perfectly. Code:
#include <stdio.h>
#include <stdlib.h>
int main() {
char personName;
printf("Hello, what is your name?\n");
scanf("%s", personName);
printf("Hello, %s\n", personName);
return 0;
}
I just got this in CLion console:
Hello, what is your name?
Mike
Process finished with exit code 11