static-allocation

Can I increase the size of a statically allocated array?

I know its possible to increase the size of a dynamically allocated array. But can I increase the size of a statically allocated array? If yes,how? EDIT: Though this question is intended for C language, consider other languages too.Is it possible in any other language? ...

Returning c_str from a function

This is from a small library that I found online: const char* GetHandStateBrief(const PostFlopState* state) { static std::ostringstream out; ... rest of the function ... return out.str().c_str() Now in my code I am doing this: const char *d = GetHandStateBrief(&post); std::cout<< d << std::endl; Now, at first d contained ga...