Answer:
i). Signed magnitude
Five bit representation = 11111
For positive 5 bit representation = 01111 = +15
For negative 5 bit representation = 11111 = -15
ii). One's complement
For positive 5 bit representation = 01111 =+15
For negative 5 bit representation = 10000 = -15
iii). Two's compliment
For positive 5 bit representation = 01111 = -15
For negative 5 bit representation = 10001 = +15
Answer:
The function definition for this question can be given as:
Function Definition:
bool isSenior(int x ) //function
{
//function body Or function definition.
//conditional statement
//if statement
if (x >=65)
{
return true; //return value true.
}
else //else statement
{
return false; //return value false.
}
}
Explanation:
In the above function definition firstly we define a function that isSenior. This function return Boolean value that is true or false in this function we pass the value as the parameter in that function we use the if statement that check the pass value is greater then equal to 65. If the condition is true it return true.else it will return false.
Dynamic Host Configuration Protocol, also known as DHCP.
Answer:
The code is not dereferencing the pointers. You have to place an asterisk in front of the pointer to read the value the pointer points to.
Explanation:
So "if (str1 != str2)" must be "if (*str1 != *str2)".
likewise:
while (*str1 != 0 && *str2 != 0)
and
result = (*str1 == *str2);
I don't think any answer would be correct, if you have an option "none of the above" then that would be the correct answer