Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions