online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
//schecking no of vowels in a string. #include <stdio.h> #include <string.h> void printstring(); int main(){ char sai[8];//allows 8 charecters. char a,e,j,o,u; //I have used j as i have already used i for iteration fgets(sai, 8, stdin); //going to enter my name char *ptr = sai; ///setting pointer for string int i,t = 0; for(i = 0;i <= 7; i++){ if((ptr[i] == 'a') || (ptr[i] == 'e') || (ptr[i] == 'j') || (ptr[i] == 'o') || (ptr[i] == 'u')) { t = t+1; } else { t = t; } } printf("%d", t); }

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