although i wrote #pragma warning(disable:4996) in the top of my code(in visual studio 2019), but compile says that "gets" is undefined. How can i fix it ???
#pragma warning(disable:4996) 
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
    char str[10];
    gets(str);
    printf("%s", str);
}
 
    