online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> void pokaz(int *tab, int rozmiar) { for (int i=0; i<rozmiar; i++) { if (tab[i] != 0) { printf("%d ", tab[i]); } } printf("\n"); } int main() { int rozmiar=6; int tab[6]={3,4,2,7,2,9}; int tab_parzyste[6]={0}; int tab_nieparzyste[6]={0}; for (int i=0, p=0, np=0; i<rozmiar; i++) { if (tab[i]%2 == 0) { tab_parzyste[p++] = tab[i]; } else { tab_nieparzyste[np++] = tab[i]; } } printf("Liczby parzyste\n"); pokaz(tab_parzyste, rozmiar); printf("Liczby nieparzyste\n"); pokaz(tab_nieparzyste, rozmiar); 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