Member • Oct 8, 2011
a crazy question for c programmers
#include
void main()
{
char name[5]="sajan";
printf("%s",name);
getch();
}
output:
sajan with a grbage value...................
que1:-where it store the null character if size is equal to the characters entered?
que2:-if we take even size nd same number of character then it wil genrate error in c, bt not in c++.why this heppens...
explain me logic plzzzzzz...................\