Hi everyone!
The problem is,the col val is not getting printed.I am using turbo c compiler.The second part of the code is the exact copy of the 1st part.No statements after scanf("%d",&col); is getting printed.Please help me understand,how to solve it.Thanks in advance.
insertCode:#include<stdio.h>
#include<conio.h>
void player_x()
{
int row,col;
printf("enter the row no.\n");
fflush(stdin);
scanf("%d",&row);
printf("the row val is :%d\n",row); //test
printf("enter the col no.\n");
fflush(stdin);
scanf("%d",&col);
printf("the col val is :%d\n",col); //test
}
int main()
{
player_x();
return 0;
}