Answer:
void delete_record(student_record *arr, int &size, int age, string name, double gpa) {
int index = -1;
if (arr != NULL && size > 0) {
for (int i = 0; i < size; ++i) {
if (arr[i].age == age && arr[i].name == name && arr[i].gpa == gpa) {
index = i;
break;
}
}
}
if (index != -1) {
for (int i = index; i < size - 1; ++i) {
arr[i] = arr[i + 1];
}
size--;
}
}
Answer:
b. the same data type
Explanation:
Any number of variables can be declared in a statement as long as the variables have the same data type. For example:
1) int a,b,c,d,e;
Here each of the declared variables a,b,c,d,e have the type int.
2) char p,q,r,s,t,u,v,w;
In this case variables p to w all have the type char.
3) float x,y,z;
x,y and z are all of type float.
Question: The question is incomplete. See the complete question below;
Consider the following situation using NAT (Network Address Translation), where the router uses one public IP address, 138.76.29.7, for several hosts with private IP addresses. The NAT table already has the information as shown due to previous communications.
Answer:
Source IP = 208.38.69.1
Source port = 3006
Explanation:
Network Address Translation (NAT) simply means the translation of one or more local IP address so as to provide internet access to local hosts. In this case, the router uses one public IP address and with private IP address.