Answer:
#include <bits/stdc++.h>
using namespace std;
void funct(){
string name;
cout<<"enter the string: ";
cin>>name;
reverse(name.begin(), name.end());
cout<<"The string is : "<<name<<endl;
}
int main()
{
funct();
return 0;
}
Explanation:
create the function funct() with return type void and declare the variable type string and print a message for asking to used enter the string.
The string enter by user is store in the variable using cin instruction.
after that, we use a inbuilt function reverse() which takes two argument.
firs argument tell the starting point and second index tell the ending point. then, the reverse function reverse the string.
name.begin() it is a function which return the pointer of first character of string.
name.end() it is a function which return the pointer of last character of the string.
finally, print the reverse string.
for calling the function, we have to create the main function and then call the function.
Answer:
010100000001101000101
Explanation:
When an error occurs in data bits, the SEC code is used to determine where the error took place. 5 check-bits are needed to generate SEC code for 16-bits data word. The check bits are:
C16=0, C8=0, C4=0,C2=0,C1=1
Therefore the SEC code is 010100000001101000101
The protocol that should be implemented is that one needs to enable hosts on the network to find the IP address.
<h3>What is IP address?</h3>
It should be noted that IP address simply means a unique address that defines a device on the internet.
In this case, the protocol that should be implemented is that one needs to enable hosts on the network to find the IP address.
Learn more about IP address on:
brainly.com/question/24930846
#SPJ12
Answer:
i do not know
Explanation:
but it helps to communication