Hello, If I have a character array
char ch [ ] = { ’ h ’ , ’ e ’ , ’ l ’ , ’ l ’ , ’ o ’ };
I have not used any null character here. It is now printing hello with some garbage values.
Now when I print the size of array why it is not including the garbage values while printing the size. I mean size should be
( characters present in it + garbage characters)
Here is the example code :