Answers for "How to have string input with spaces"

0

How to have string input with spaces

#include <stdio.h>

int main()
{
    char inputStringValue[101];
    scanf("%[^\n]",inputStringValue);
    printf("%s",inputStringValue);
}
Posted by: Guest on September-15-2021

Code answers related to "How to have string input with spaces"

Browse Popular Code Answers by Language