i am trying to use struct to make some kind of list that takes the student's name, number etc. My problem when i try to build solution and see if there is an error, compiler(Visual Studio 2013) tells me to use "strcpy_s" intead of "strcpy". And when i fix it this time i get errors related to string string sizes. What exactly am i doing wrong?
#include <stdio.h>
#include<string.h>
struct student
{
char name[20];
char surname[20];
char dep[50];
int Class;
int num;
}stud;
main(void){
strcpy(stud.name, "goktug");
strcpy(stud.surname, "saray");
strcpy(stud.dep, "elektrik");
}