Answer:
#include <iostream>
using namespace std;
struct StudentType{
string studentName;
int studentId;
}
int n;
char answer[20];
int main(){
cout<< "Enter the size of the array: ";
cin >> n;
StudentType *student = new StudentType(n);
for (int i = 0; i < n; i++){
int name;
int number;
cin>> name;
cin >> number;
student[i].studentName = name;
student[i].studentId = number;
}
for (int i = 0; i < 20; i++){
cout<< "Enter answers: ";
cin >> ans;
answer[i] = ans;
}
}
Explanation:
The C++ source code has three global variables namely, answer which is an array of character data type, StudentType which is a structure data type and the integer variable n. The main function declares and initializes the dynamic-spaced student array of the structure datatype with the n variable.
Answer:
BGP neighbors are defined by an IP address. BGP uses TCP port 179 to communicate with other routers.
Answer: D
Explanation: Using anti malware software is a good method but you can never be 100% sure it's gone and the software may not detect it, better to start off clean.
Answer: C) Objects in the image will become smaller as pixels are removed from their edges.
Explanation: Erosion is the process which is used in the field of morphological image processing .The functioning of the erosion is base on the elimination of the pixel from the boundaries or edges of the object.Thus, it makes the image smaller than actual image. .The other part of the processing is dilation which is addition of pixels to image.
Other given options are incorrect because erosion does not add pixels so image cannot become larger, cannot be of same size due to removal of pixel and no change in the color of pixel can happen.Thus, the correct option is option(C).
The cause of James Naismith is Cerebral hemorrhage