online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Welcome to blackNwhite Question:- Write A C program to Swap the Values of Two Variables. *******************************************************************************/ #include <stdio.h> int main() { int a, b, temp; // Input values for variables a and b printf("Enter value for a: "); scanf("%d", &a); printf("Enter value for b: "); scanf("%d", &b); printf("Before swapping: a = %d, b = %d\n", a, b); // Swapping logic using a temporary variable temp = a; a = b; b = temp; printf("After swapping: a = %d, b = %d\n", a, b); return 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