Visual studio error: implicit declaration of function

567 views Asked by At

why is this error coming implicit declaration of function 'scanf_s'. scanf is not working in visual studio even after writing scanf_s instead of scanf?.

#include<stdio.h>
int main()
{
    printf("hello\n");
    int a;
    scanf_s("%d", &a);
    printf("\n%d",a);
    return 0;
}

enter image description here

0

There are 0 answers