online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> #include<string.h> void conv (char word[]); int main(){ char wd[50]; printf("\n Input word:"); gets(wd); conv(wd); return 0; } void conv(char word[]){ int i,n=0; n=strlen(word); printf("\n New word: "); for(i=0;i<n;i++){ if(word[i]>='a' && word[i]<='z'){ printf("%c",word[i]-32); }else if(word[i]>='A'&& word[i]<='Z'){ printf("%c",word[i]+32); } } printf("\n"); return; }

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