jweinst1
1/21/2016 - 1:19 AM

basic io with strings and char arrays in c

basic io with strings and char arrays in c

#include "stdio.h"

int main(void) {
    // Disable stdout buffering
    setvbuf(stdout, NULL, _IONBF, 0);
    char received[50];
    printf("say something:");
    scanf("%s", received);
    printf("you said %s", received);
    return 0;
}