online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> void swapls(char* source, char* dest) { while(*source != '\0') { *dest = *source; if(*dest >= 65 && *dest <= 90) *dest += 32; else if(*dest >= 97 && *dest <= 122) *dest -= 32; ++source; ++dest; } *dest = '\0'; } int main() { char source[32] = "foo-32_BAR+64(bald)\0"; char dest[32]; printf("%s\n", source); swapls(&source[0], &dest[0]); printf("%s\n", dest); 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