online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <stdio.h> int removeVowels(char *s) { char *src = s; char *dst = s; while (*dst != '\0') { switch (* ++ src) { case 'A': case 'a': case 'E': case 'e': case 'I': case 'i': case 'O': case 'o': case 'U': case 'u': if (* src != * dst) * ++ dst = * src; break; default: * ++ dst = * src; break; } } return src - dst; } int main() { char s[30] = "aabbeeemioooorrruuu"; char p[30] = ""; char t[30] = "ssssstttttrrrrriinggg"; int result; result = removeVowels(s); printf( "result: %d, s: '%s'\n", result, s); result = removeVowels(p); printf( "result: %d, p: '%s'\n", result, p); result = removeVowels(t); printf( "result: %d, t: '%s'\n", result, t); 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