Answers for "and operator in if c++"

C++
4

conditional operator in cpp

//(expression 1) ? expression 2 : expression 3
//If expression 1 evaluates to true, then expression 2 is evaluated.
   int x, y = 10;

   x = (y < 10) ? 30 : 40;
   cout << "value of x: " << x << endl; //prints 40
Posted by: Guest on May-04-2020
-1

or operator c++

section .text
   global main
extern printf

main:
   mov ebx,10 ; moving the intial time to ebx
loop:   push ebx ; value of first parameter
   push message ; value of second parameter
   call printf ; to outpur the result
   dec ebx ; decrementing the value stored in ebx by 1
   jnz loop ; if not equal to zero then a go to loop would be triggered
   add esp,80   ;clearing the stack
   ret

message   db   "Value = %d",10,0   

Here's the solution to your question, please provide it a 100% rating. Thanks for asking and happy learning!!
Posted by: Guest on July-26-2021

Browse Popular Code Answers by Language