Your IP address, also known as Internet Protocol
Answer:
prepare (e.g. SQL prepared statements)
parse/convert (e.g. parse a string as an int/convert an array to string)
Explanation:
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.