Question: I have taken Java and Python and Scheme classes however my C99 teacher doesnt actually teach he just expects us to figure it out. Now

I have taken Java and Python and Scheme classes however my C99 teacher doesnt actually teach he just expects us to figure it out. Now idont know why this is stuck in an infinite loop i merley want to read the input (which i tried to linit to 10) however regardless if the amount of chars i type i never reach my next print statement. I am limited to scanf printf and the very basic data types. Any clarity as to why this is an infinite loop? how to address this possibly?
 I have taken Java and Python and Scheme classes however my

int main() { unsigned int rand_seed = 1; srand((unsigned int)time(NULL)); int rand value - rand() X (2 - @ + 1) +0; char choice_play(10); printf("Welcome to Rock, Paper, Scissors "); printf("Would you like to play?"); scanf("%s", choice_play); int index = ; if (choice_play[index] = 'y' Il choice_play[index] = beginGame(); 'Y) else continue; return 1; int beginGame(){ char choice_selection 20); int computer_score = @; int human_score= ; printf("What is your choice"); scanf("%s", choice_selection); return 1; mine

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!