Answer:
The circular individually linked list is more efficient for time sharing process ,when multiple application are running on pc it is responsibility of an output system to put all process on a list and execute them all by giving them piece of time and make them wait when cpu is selected to other process.
It will be more suitable for output system to use circular list as when it reaches to last of list it will be manually reaches to starting node or process.
Singly circular linked list is used when we are concerned with the memory as only one process will be allocated memory at once and there are no chances of process to go never-ending waiting.
Explanation:
Answer:
i also want to know the answer
Explanation:
Answer:
Statement to get input values:-
cin>>birthMonth>>birthYear;
Statement for output:-
cout<<birthMonth<<"/"<<birthYear<<endl;
Explanation:
The statements are in C++ language.
To get the input we use cin in C++ with >>.
We are taking the input of birthMonth and birthYear.
For printing we use cout .We have printed birthMonth then slash and then birthYear.
Answer:
A two-dimensional grid consisting of rows and columns of memory cells
Explanation:
Radom access memory is made of bits of data or program code that are tactically arranged in a two-dimensional grid. DRAM will store bits of data in what's called a storage, or memory cell, consisting of a capacitor and a transistor. The storage cells are typically organized in a rectangular configuration.
Answer:
#include<iostream>
#include <vector>
#include <list>
using namespace std;
int main(){
int a[10]={0,1,2,3, 4, 5, 6, 7, 8, 9 };
std::vector<int> v (&a[0],&a[0]+10);
std::list<int> l (&a[0],&a[0]+10);
int b[10];
for(int i=0;i<10;i++){
b[i]=a[i];
}
std::vector<int> v2(v);
std::list<int> l2(l);
for(int i=0;i<10;i++){
b[i]+=2;
}
for(int i=0;i<10;i++){
v2[i]+=3;
}
for (std::list<int>::iterator it = l2.begin(); it != l2.end(); it++)
*it=*it+5;
cout<<"Each containers value are: "<<endl;
cout<<"1st array: "<<endl;
for(int i=0;i<10;i++){
cout<<a[i]<<" ";
}
cout<<"\n 1st vector: \n";
for(int i=0;i<10;i++){
cout<<v[i]<<" ";
}
cout<<"\n 1st List is:\n";
for (std::list<int>::iterator it = l.begin(); it != l.end(); it++)
cout << *it << ' ';
cout<<"\n 2nd array: "<<endl;
for(int i=0;i<10;i++){
cout<<b[i]<<" ";
}
cout<<"\n 2nd vector:\n";
for(int i=0;i<10;i++){
cout<<v2[i]<<" ";
}
cout<<"\n 2nd list:\n";
for (std::list<int>::iterator it = l2.begin(); it != l2.end(); it++)
cout << *it << ' ';
return 0;
}
Explanation:
- Initialize an array, a vector and a list of type integer
.
- Create a 2nd array, vector, and list as a copy of the first array, vector, and list.
- Increase the value of each element in the array by 2
, vector by 3 and list by 5.
- Finally display the relevant results.