A event block i know this im i have been in technology for 5 months
Answer:
#include <iostream>
using namespace std;
int main() {
int *ip_arr,n;//pointer name inp_arr and integer n to store the size.
cin>>n;//size.
for(int i=0;i<n;i++)
ip_arr[i]=-1;//assigning -1 to every element.
for(int i=0;i<n;i++)
{
cout<<ip_arr[i]<<" ";//printing every element.
}
return 0;
}
output:-
100
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
Explanation:
I am taking input of size.You should enter 100 for 100 values which have value -1.
Doubly linked chain
When a linked chain contains nodes that reference both the next node and the previous node, it is called a doubly linked chain. This type of chain is often used in data structures because it provides a way to easily traverse the data in both directions. However, because each node must reference both the next node and the previous node, doubly linked chains require more memory than singly linked chains.
Learn more here:
brainly.com/question/13100699
#SPJ4