Hello,

Why doesn't the following code work?

#include <stdio.h>

int main(void)
{
        char text[80];
        
        printf("Please enter a text: ");
        scanf("%[\^n]",text);
        printf("\n%s",text);

}

Thanks,
--ayyaz

Reply via email to