String size value in c/c++

main()
{
char a[20]=”learning”;
printf(“%d”, sizeof(a));
}
Tutorial answer:
20
Debugging solution:
It will take no of assign character in the array,

Related post