Can Someone explain why sizeof
operator gives wrong return in value in following code in c++. Although the expected answer was 6, the final output was 7.
char word[]="SanCha";
cout << sizeof(text);
Can Someone explain why sizeof
operator gives wrong return in value in following code in c++. Although the expected answer was 6, the final output was 7.
char word[]="SanCha";
cout << sizeof(text);