"In a C program, How to take a (char array) i.e. a user input string(including spaces), whose length should also be a user input value ?"
In C program, I tried to take a user input value as the length for a user input string, but did not get the required output. a code snippet of the program
I expect the output to be the same string entered by the user, whose length would also be a user input value. But the actual output does not show the string, once the user enters the string length.