online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <string.h> int main() { char str[200]; int n,i; int flag=0; printf("Give number of strings:"); scanf(" %d",&n); char names[n][100]; printf("Enter the strings:\n"); for(i=0;i<n;i++) { scanf("%99s",names[i]); } printf("Entered Values are:\n"); for(i=0;i<n;i++) { printf("%s\t",names[i]); } printf("\nEnter the string you want to search for:"); scanf("%s",str); for(i=0;i<n;i++) { if(strcmp(names[i],str) == 0) { flag=1; break; } } if(flag==1) printf("Yes this string %s exists!\n",str); else printf("No it does not exists"); 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