B
B
Bebb Dedd2019-01-06 23:41:45
C++ / C#
Bebb Dedd, 2019-01-06 23:41:45

What is the difference between and and && in C++?

What is the difference between this: and this: and when should one or the other logical operator be used? Thank you.
if (name == "Alex" and sername == "Penguin")
if (name == "Alex" && sername == "Penguin")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
devalone, 2019-01-06
@exelua

https://en.cppreference.com/w/cpp/language/operator...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question