Question: I need to initialize the array to a size of 10 instead of asing for user input. How would I do so? #include int main()
I need to initialize the array to a size of 10 instead of asing for user input. How would I do so?
#include
int main() { // asking the size of array from user int count; printf("Enter the size of the array: "); scanf("%d", &count); printf(" "); int arr[count], i; printf("Enter %d numbers seperated by space: ", count); // taking input of array values from user for(i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
