cklangford98 cklangford98
  • 06-03-2018
  • Computers and Technology
contestada

Which of the following is the Boolean logical operator for AND in C#?

Respuesta :

xplass
xplass xplass
  • 06-03-2018
char *pch = 0; ... (pch) && (*pch = 'a');

heres an example

// expre_Logical_AND_Operator.cpp // compile with: /EHsc // Demonstrate logical AND #include <iostream> using namespace std; int main() { int a = 5, b = 10, c = 15; cout << boolalpha << "The true expression " << "a < b && b < c yields " << (a < b && b < c) << endl << "The false expression " << "a > b && b < c yields " << (a > b && b < c) << endl;
Answer Link

Otras preguntas

"Preparing for a hurricane is essential" Write a 7 point JPR with an opposing view.
PLS help with these 2 Questions
WHAT IS HARDWARE ? ...​
3x – 2 ( 6x – 3 ) = 42
32^1/25 x2^x = 8^1/4 Work out the exact value of x.
Determine whether the table represents a linear or nonlinear function.​
Helpppppppppp plssss
Mr. Singh's Parking Garage are $7.00 for the first hour and $2.50 for each additional 30 minutes. If Margo has $24.50, what is the maximum amount of time she wi
How would you ensure you have valid data? PLS HELP IT’S DUE TOMORROW, 6th science
PLSSS ASNWER ITS URGENT, MY ASSIGNMENT IS DUE IN 3 hours. If a typical aluminum beverage can weighs 13.5 grams, how much alum could you produce for every 210 c