I am still quite new to C, and I keep getting an error in Code Blocks which stops me from running my programs. I get the error "implicit declaration of functions printf_s() and scanf_s(). Here is my code:
#define __STDC_WANT_LIB_EXT1__ 1
#include <stdio.h>
int main(void)
{
int age = 0;
char name[20];
printf_s("Enter your age: ");
scanf_s("%d", &age);
print_s("Enter your name: ");
scanf_s("%s", name, sizeof(name));
printf_s("Your name is %s and you are %d years old.\n", name, age);
return 0;
}