Answer to Question #267059 in C++ for pakie

Question #267059

What will the value of the answer variable be after the code segment below has been run.  

   

   

bool answer ; 

int number3 = 5, number5 = 30; 

  

answer = number3 <= number5 ;  




1
Expert's answer
2021-11-20T09:49:17-0500
using namespace std;


int main()
{
	bool answer ; 
	int number3 = 5, number5 = 30; 
	answer = number3 <= number5 ;  
	cout<<"\n\tanswer = number3 <= number5 = "<<answer;
	return(0);
}




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS