#include <stdio.h>
int main ()
{
char c[10];
int k=0;
printf("please enter the element value in character\n");
for(k=0;k<10;k++)
{
scanf("%c",&c[k]);
}
for(k=0;k<10;k++)
{
printf("Value in char is %c\n",c[k]);
}
return 0;
}
//problem is that i can only initialize value of 5 char not 10. My IDE is code::blocks with GNU GCC COMPILER .