i keep getting an error in visual studio 2015 that says
visual studio 2015\projects\whoru.c\whoru.c\source.c(9): error C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
what am i doing wrong here and how do i fix it?
thanks so much!
#include <stdio.h>
int main()
{
char me[20];
printf("what is your name?");
scanf("%s",&me);
printf("Darn glad to meet you, %s!\n", me);
return(0);
}
I don’t know VS, but have you tried changing scanf to scanf_s?
yep, still didnt help