1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sineoko [7]
3 years ago
7

What happens when an arithmetic operator is applied to non-arithmetic data types such as Boolean or character

Computers and Technology
1 answer:
Blababa [14]3 years ago
3 0

Answer:

Following are the code to this question:

#include<iostream>//defining header file

using namespace std;

int main()//defining main method

{

bool a = true;//defining bool variable that holds true value

bool b = false;//defining bool variable that holds false value

cout<<a+b<<endl;//using print method to add bool value

cout<<a-b<<endl;//using print method to subtract bool value

cout<<a*b<<endl;//using print method to multiply bool value

return 0;

}

Output:

1

1

0

Explanation:

In this code, Firstly we import the header file, and in the next step, the main method is defined, in this, two bool variable "a, b" is declared, that holds true and false value respectively, and in the next step, three print method is declared that adds, subtract, and multiply the given value and use print its calculated value.

You might be interested in
Short Essay on the history of Computer​
Ann [662]
Go on a essay website the right a essay about a topic !
5 0
3 years ago
Read 2 more answers
Assume that the int variables i, j and n have been declared , and n has been initialized . write code that causes a "triangle" o
SIZIF [17.4K]

Here you go,

class Program

   {

       static void Main(string[] args)

       {          

          int n,i,j;

          Console.Write("Enter size: ");

          n = Convert.ToInt32(Console.ReadLine());

          for (i = 1; i <= n; i++)

          {

              for (j = 1; j <= i; j++)

              {

                  System.Console.Write("*");

              }

              System.Console.Write("\n");

          }          

           Console.ReadLine();

       }

   }

5 0
3 years ago
How many errors are in the following formula?
finlep [7]

there are about two errors in the formula


4 0
3 years ago
The command-line interface tells a user that it's ready to receive commands by displaying a specific set of characters called a(
Brrunno [24]

Answer:

B) prompt

Explanation:

Prompt tells a user that it's ready to receive commands by displaying a specific set of characters.

For example in <em>windows</em> it can be:

C:\Temp>, The prompt states that user is currently in <em>C </em>drive <em>Temp</em> directory.

in <em>Linux </em>based operating systems it can be:

[email protected]:~/Documents$

where it is in the format [email protected]:~directory$

5 0
3 years ago
Consider the following statement: String myMiddleInitial = “h”;
Levart [38]

Answer:

It may depend on the programming language, but this looks correct!

Good Job! :)

Explanation:

Could you please mark this answer as brainiest?

It would help me a lot :)

Thanks!

6 0
3 years ago
Other questions:
  • ___________ is produced by propulsion systems or engines.
    6·1 answer
  • Why do i get message notifications but when i click on it it says i have no new messages?
    7·1 answer
  • Intellectual property piracy has gotten a small boost from the increasing availability of counterfeit goods through Internet cha
    14·1 answer
  • A technician is trying to recover information on a computer that has been hidden or deleted on purpose in order to hide evidence
    5·1 answer
  • Master pages are used to create
    7·1 answer
  • What have very strong chemical bonds and cannot be reshaped when heated.​
    6·1 answer
  • What order? (function templates) Define a generic function called CheckOrder() that checks if four items are in ascending, neith
    14·1 answer
  • How do I send the face to the back? Seriously, I can't find out how...
    13·1 answer
  • Carmen has met new people online that she enjoys talking to. One of these people has asked her to meet at the park in person and
    15·1 answer
  • Which UPPER function is written so that all text in cell B4 will be capitalized? O=UPPER(B4) O=UPPER[B4] O UPPER B4 O=UPPER
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!