0
outputs array
How to outputs an array without using any loops?? example.. int arr[10] = {1,2,3,4,5,6,7,8,9,10}; cout << all array's indexes..; any ideas??
2 Respuestas
0
If + Goto. Recursive functions. Writing all the outputs manually. Idk
0
why do you want to do it without a loop?Anyway:
cout<<arr[0]<<", "<<arr[1]<<…<<arr[9]<<endl;