Minimized window
The sign to click is a "-" sign (minus)
Answer:
False.
Explanation:
When we declare a variable as reference type we have to initialize that variable otherwise the compiler will give error that the reference variable is not initialized.You also cannot initialize the variable Foo& with NULL value because it is a reference variable and we have to initialize it.
On the other there is no need to initialize the variable Foo * since it is a pointer it can also store NULL value.
So the answer is only Foo* can store NULL value not Foo &.
Answer:
#include <iostream>
using namespace std;
int main() {
int a=-156;//negative integer between -1 and -255.
a*=-1;//multiplying a to -1 so that it can become positive.
cout<<a;//printing a.
return 0;
}
Explanation:
The above written program is in C++ and in the program an integer a is defined with a negative value in the program it is -156.Then to convert it to positive integer we have to multiply a to -1 after that printing the value of a on the screen.