Question: I have having trouble degbugging and fixing my compiler errors. In line 14, I get the error: expected expression before 'int'. In line 19, I

I have having trouble degbugging and fixing my compiler errors.

In line 14, I get the error: expected expression before 'int'.

In line 19, I get the error: expected =, ,, ;, asm or __attribute__ before

In line 19, I also get the warning: unused variable i. Don't know why since I am placing the number read by scanf into the array at position i during each iteration.

Here's my code.I have having trouble degbugging and fixing my compiler errors. In line

And In line 6, I get the warning: unused variable "intArray'. Don't know why since I am accessing the array in the for loop and assigning it the number scanf reads in.

1 2 #include #include 4 int main (void) { 6 int intArray 20 ]; 7 int numSort; 9 printf ( "Welcome to Project#1! "); 10 11 printf( "Please enter how many numbers you want to sort (up to 20): \t "); 12 scanf ("Si", &numSort); 14 if ( int *numSort

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!