Computer Science, asked by adil929970, 8 months ago

different between && and ll​

Answers

Answered by ShivanshB2
0

Usage in programming languages.....

Hey mate it seems like you are learning any new programming language

Here is you answer

&& : It is used when you want to consider both the conditions as true

take for an instance :

int a=4, b=2, c=5;

if ( a>b && a<c)

{

// Statement

}

Compiler will check that are both the conditions true? and if they are it would go on to the statement other wise if statement would not be executed.....

Now.

for || ( or operator)compiler would execute the statement even if any one condition is correct.

Take for an instance:

int a=3,b=2,c=3;

if (a<b || a==c)

{

// Statement

}

In this compiler would check both the conditions and even if one is correct it would execute the Statement.

Hope it helps ❤️

\huge\pink{PLEASE}

\huge\pink{MARK}

\huge\pink{BRAINLIEST}

Similar questions