Answer:
#include <iostream>
using namespace std;
void swap(int& m, int& n) /* passing by reference so that changes will be made in the original values.*/
{
int t=m;
m=n;
n=t;
}
int main()
{
int val1,val2;
cout<<"Enter the values"<<endl;
cin>>val1>>val2;
cout<<"Values before swap "<<val1<<" "<<val2<<endl;
swap(val1,val2);
//calling the function swap..
cout<<"Values after swap "<<val1<<" "<<val2<<endl;
return 0;
}
Explanation:
Created a function swap with 2 arguments m and n passed by reference.
Answer:
First shift - 1101
Second shift - 0110
Third shift - 1011
Fourth shift - 1101
Fifth shift - 0110
Sixth shift - 1011
Explanation:
Each time you shift a register to the right, you do 3 things:
- The rightmost digit drops off
- You move the next three digits over one position to the right
- You fill in the leftmost position with one of the numbers from your serial input.
Contents are initially 1011. The 1 on the right disappears. The leftmost 3 digits (101) end up in the last 3 positions of the register. The first position of the register takes a number from the serial input, which is 1 in this case. So you end up with 1101.
Do this a second time. The rightmost 1 is gone, the 110 end up as the last 3 positions of the register, and you end up with 0 in the leftmost position. This one is 0110.
The remaining 4 follow the same pattern.
Answer:
Like when your doing an application for a job or anything important lol
Explanation:
Answer:
Behavioural targeting
Explanation:
Behavioural targeting is the method that enables advertisers to display more relevant ads based on user's search and browsing history. This is an online targeting technique that collects information from a particular user. This information comes from the person's browsing history. The information that comes from the browsing history enable advertisers to display specific targeted ads that would most appeal to the person in question.
Mechanical energy converts chemical energy into rotational or linear motion.