TODAY JAVA SCHOOL

In java school, programming, design, computer general knowledge, web application, software, web services, social media, digital marketing, oops, concept of programming language, oops feature, console media, graphics medium, first programming, c, c ++ , Java, PHP, SQL, MySQL, HTML, HTML_5, J_query, JavaScript, Bootstrap, Framework, images with logos, examples, shared and explained.

https://www.amazon.in/b?node=26373545031&linkCode=ll2&tag=1234567801cdb-21&linkId=3b9882431b00409b44141e0344b35a15&language=en_IN&ref_=as_li_ss_tl

Breaking

Tuesday 26 May 2020

C++ Boolean Expressions |C++ Boolean Expressions Language In Hindi

C++ Boolean Expressions


Boolean expression is a C++ expression that returns a boolean value:1 (true) or 0 (false).

You can use a comparison operator, such as the greater than (>) operator to find out if an expression (or a variable) is true:


image of C++ Boolean Expressions

Fig: C++ Boolean Expressions


Program:

#include <iostream>

using namespace std;

int main() {

  int x = 10;

  int y = 9;

  cout << (x > y);

  return 0;

}


Output:

1

 

 


No comments:

Post a Comment