Answer:
6898
Explanation:
Given that 1AF2 is a hexadecimal number.
We have in hexadecimal, the digits are 0,1,2,3...9, A,B,C,D,E,F for the 16 digits used.
Using the above we say in the given number, we have
2 in units column
F in 16 column
A in 16 square column
and 1 in 16 cube column
Place value
Hence 1AF2 = 6898 in decimal
Answer:
D. I use a Mac and I right-click the file, then add tags. I can create new tags for describing a png image (or pdf if it was exported).
Answer:
In opp friend function is a function that gives the same access to private and protected data. It is declared in class that is granting access.
Explanation:
#include<iostream.h>
using namespace std;
class Sum
{
int a, b, add;
public:
void input()
{
cout << "Enter the value of l and m:";
cin >> l>>m; taking input from users
}
friend void add(sum &t);
void display()
{
cout << "The sum is :" << z;
}
};
void add(sum & p)
{
p.add = p.a + p.b;
}
int main()
{
sum p1;
p1.input();
add(p1);
p1.display();
return false;
if(display==5)
{
return true; //true is returned if sum is equal to 5
}
else //if they are not the same
{
return false;
}
}