#include<stdio.h>
struct st
{
char *name;
char *br;
};
int main()
{
struct st ob[2];
ob[0].name=NULL;
ob[0].br=NULL;
ob[1].name=NULL;
ob[1].br=NULL;
printf("Enter name:");
scanf("%s",ob[0].name);
printf("enter branch:");
scanf("%s",ob[0].br);
}
When I execute this program the program stops executing after I enter the name. Please suggest what changes be made so that the program works fine.