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
1 Resposta
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!