0

I need a code for queues insertion

in which array is of ten size and initialized and assigned values before running the program and after insertion it displays the queue

12th Dec 2016, 8:42 PM
Usama Ali Zuberi
Usama Ali Zuberi - avatar
1 ответ
0
So the code u wanted is most probably- #include<iostream> using namespace std; int main() { const int size = 10; int arr[size] = { 1,2,3,4,5,6,7,8,9,0 }; //Here you can insert your own values for (int i = 0; i < size; i++) //Here 'i' is a loop variable cout<< arr[i] << " "; return 0; } Hope this helps!
13th Dec 2016, 7:05 PM
Mohammed Tauseef
Mohammed Tauseef - avatar