0
is this the right program.
#include<stdio.h> int main(){ int i,arr[50],num; printf("\nEnter no of elements :"); scanf("%d",&num); //Reading values into Array printf("\nEnter the values :"); for(i=0;i<num;i++){ scanf("%d",&arr[i]); } //Printing of all elements of array for(i=0;i<num;i++){ printf("\narr[%d] = %d",i,arr[i]); } return(0); }
2 Antworten
0
What if I wish to enter 51 elements?
0
this is a c program...not c++