I have the following code
the code shell only change the value of faculta[1].grupa using the function schimb.Code:#include <stdio.h>
typedef struct
{
char nume[60];
char sectie[20];
int grupa;
} student;
int schimb (student *faculta)
{
faculta[1]->grupa=6;
return 0;}
int main()
{student faculta[3];
faculta[1].grupa=5;
schimb(&faculta[1]);
printf("%d",faculta[1].grupa);
return 0;}
How can I make this code work ?