Answer:
Explanation:
This is unsolvable if you have no variable substitutes
I would include cell phones , DVD and Blu-ray flat- screen televisions into my story to give the readers a sense of our world.
Explanation:
At this time, the world and its people are connected by cell phones.
Everything that is shown to the world by the media, can be seen clearly and with a good audio output, by using DVD and Blu ray flat screen televisions, as these are equipped with the latest technology to display the images clearly.
People use Social platforms ,to spread information to every corner of the world. This is possible, when each and every individual has a cell phone with an internet connection.
So, If I were writing a story , I would like to include these gadgets as part of my storyline, as this would depict the time and the sense of our world ,at that time to the readers.
Answer:
11001100 = 204
11111111 = 255
Explanation:
For 11001100:
1*2⁷ + 1*2⁶ + 0*2⁵ + 0*2⁴ + 1*2³ + 1*2² + 0*2¹ + 0*2⁰ = 204
Just replace 1's by 0's in the following calculation to do it for every 8 bit number:
1*2⁷ + 1*2⁶ + 1*2⁵ + 1*2⁴ + 1*2³ + 1*2² + 1*2¹ + 1*2⁰ = 255
If you don't want to do the calculation yourself, you can set the windows calculator in programmer mode, then select binary and key in the number.
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.