R
Radde
Hi all,
int main()
{
char ch[] = "";
cout<<"size is"<<sizeof(ch)<<endl;
return 0;
}
the above code prints size of ch is 1, why is it?? even though ch[] is
empty, what for 1 byte?? Ideally size of ch[] should be zero by looking
at the code, but why 1??
Cheers..
int main()
{
char ch[] = "";
cout<<"size is"<<sizeof(ch)<<endl;
return 0;
}
the above code prints size of ch is 1, why is it?? even though ch[] is
empty, what for 1 byte?? Ideally size of ch[] should be zero by looking
at the code, but why 1??
Cheers..