= is for assignment, == is for comparison.
So x=2 means: assign the value 2 to the variable x.
and
x==2 means: is variable x equal to 2, yes or no?
Answer:
a)
#include <iostream>
using namespace std;
int main() {
bool a,b,c;
cin>>a>>b;
if(a^b)//X-OR operator in C++.
c=true;
else
c=false;
cout<<c;
return 0;
}
b)
#include <iostream>
using namespace std;
int main() {
bool a,b,c,d;
cin>>a>>b>>c;
if((a^b)^c)//X-OR operator in C++.
d=true;
else
d=false;
cout<<d;
return 0;
}
Explanation:
The above written programs are in C++.There is an operator (^) called X-OR operator in C++.It returns true if the number of 1's are odd and returns false if the number of 1's are even.
In the if statement I have user X-OR operator(^) to find the result and storing the result in another boolean variable in both the questions.
Keep the first hard drive then override it insert the second one and memory goes into the second one
Answer: Server based network
Explanation:
The server based network is the type of network in which the special type of computer mainly handle the various networking tasks like the storing file, managing printers and authenticate the users in the system. The server based network are also responsible for run various types of application like the email and the database system.
The microsoft windows 2016 and the window 2012 are the two ideal OS (Operating system) that mainly used in the server based network.
Therefore, we use the server based network as it easy to backup and manage in the networking system.