online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/* Program to understand logical/boolean operators*/ #include <stdio.h> int main() { int a=40, b=20; int c=20, d=30; if (a>b && a !=0) { printf("&& Operator : Both conditions are true\n"); } if (c>d || d!=20) { printf("|| Operator : Only one condition is true\n"); } if (!(a>b && a !=0)) { printf("! Operator : Both conditions are true\n"); } else { printf("! Operator : Both conditions are true. But, status is inverted as false\n"); } if (a && b){ printf("\na && b"); } if (a && 0){ printf("\na && 0"); } if (a || 0){ printf("\na || 0"); } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue