online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include<stdio.h> #include<stdlib.h> #include<string.h> int main (){ char bits[128]; char caruno='1'; int i; int one = 0; printf("Insert the byte: "); scanf("%s", bits); for(i=0;i<8;i++){ if(bits[i]==caruno){ one++; } } if (one%2==0) //byte is even strcat (bits, "0"); else //byte is odd strcat (bits, "1"); printf("The result is: %s", bits); return (EXIT_SUCCESS); }

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