online compiler and debugger for c/c++

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