0
Rearrange the code to find and print the smallest element of the array.
int small= arr[0]; for(int x=1; x<n; x++){ if( arr[x]<small small= arr[x]; } cout<<small; if my arrangement is wrong then please correct me??
1 Answer
+ 3
No problem in arrangement.