Question: Debug the given C program to read and print N array elements. Find 10 errors in the given Code and correct the errors. NOTE: Copy
Debug the given C program to read and print N array elements. Find 10 errors in the given Code
and correct the errors.
NOTE: Copy and PASTE the correct program in the space below.
|
/*Program on Arrays *\ include void Main {} int B[30], n, i; Printf(" Enter value of N:" ; scanf("%d , n); for(i=0 i< n ; i++) {printf(" Enter arrays elements :"); scanf("%d",& B[i] );
printf(" Arrays elements are : ); for i=0; i printf("\t %d", B[i ]); } |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
