Hi

I have a program where the user can enter a string of up to 100 chars which is stored in a variable

Code:
char DataInput[100];

printf("Please enter your data:\n");
scanf("%s", &DataInput);
I want to print on the screen and first char of the string. So something like:

Code:
printf("%s",&DataInput[0]);
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 characters

Any assistance greatly appreciated!

TJJ