In this array ,the given array is of size 5,but it is not taking more than 3 elements, Why?
#include<stdio.h>
int main()
{
char a[10],*q;
int i;
q=a;
for(i=0;i<5;i++) {
scanf("%c",a+i);//a[5]={a,b,c}
}
for(int i=0;i<5;i++) {
printf("%c",*(a+i));
}
printf("\n%d",sizeof(a));
printf("\n%d",sizeof(q));
}