Witam pomożecie z tym programem ? nie potrafię zrozumieć co robię źle. W c++ to działa natomiast w C samym nie chce :(
#include <stdio.h>
#include <stdlib.h>
int main()
{
char tab[11];
int i;
printf("Podaj Numer pesel:");
scanf("%s", tab);
printf("Numer pesel to:");
for (i = 0; i < 11; i++)
{
printf("%s", tab[i]);
}
system("pause");
return 0;
}