Hi
I have a program where the user can enter a string of up to 100 chars which is stored in a variable
I want to print on the screen and first char of the string. So something like:Code:char DataInput[100]; printf("Please enter your data:\n"); scanf("%s", &DataInput);
This always gives me errors - what am I doing wrong - I think I am using the wrong variable type? However I want the input to accept many charactersCode:printf("%s",&DataInput[0]);
Any assistance greatly appreciated!
TJJ