Answer:
int main()
{
int x,y;
bool b1, b2;
cout<<"enter values of x : ";
cin>>x;
cout<<"enter values of y : ";
cin>>y;
b1 = y > x; // false
b2 = x > y; // true
cout << "b1 is = " << b1 << "\n";
cout << "b2 is = " << b2 << "\n";
if (b2)
cout<<endl << "Larger Number" << "\n";
else
cout << "Smaller Number" << "\n";
return 0;
}
Whenever you create a new slide, it appears below the selected slide.
If you have 2 slides and want one in between the two select the first slide and then select new slide.
Answer:
Hi how are you doing today Jasmine
Answer:
error: incompatible types
Explanation:
Given
The attached code
Required
The output
Variable "a" is declared as float
While p is declared as a pointer to an integer variable
An error of incompatible types will be returned on line 3, <em>int *p = a;</em>
Because the variables are not the same.
To assign a to p*, we have to use type casting.
Hence, (b) is correct