Answer:
// This program is written in C++ programming language
// Comments are used for explanatory purpose
// Program starts here
#include <iostream>
#include <string>
using namespace std;
// Declare variables
int inputvar;
// Declare output variable as array
int outputvar[32];
// Set a counter for binary array
int i = 0;
while (inputvar > 0) {
// Divide inputvar by 2 and store remainder in outputvar
outputvar[i] = n % 2;
inputvar/=2;
i++; // increment i by 1
}
// End of division
// Prin resulting array in reverse order
for (int j = i - 1; j >= 0; j--) {
cout << outputvar[j];
}
return 0;
}
// End of Program
An Internet Protocol address is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. An IP address serves two main functions host or network interface identification and location addressing which can help you a lot.
A 64-bit operating system can handle more data at once as compared to that of a 32-bit operating system. The former is able to access over four billion times the physical memory of the latter.
Answer:
Please find the complete question in the attached file.
Explanation:
Following are the code to the given question:
-module(helloworld)//use a module
-export([start/0])
start() ->//start module
func([Head Taill) ->//defining a method func that takes a parameter
{
first, second} = Head,//holding head value
if
//defining if block
first > second -> func(Tail)//method func that takes a parameter
true ->
[first, second}|func(Tail)]//method func that takes a parameter
end