Why the size of array "g1" is 6 after strcpy ? It should be 9Great !!! Thanks a lot everyone for your responses. :)
Why the size of array "g1" is 6 after strcpy ? It should be 9we are copying the contents of g2 array to g1 array. Size should change. Please mark me if I am wron...
Why the size of array "g1" is 6 after strcpy ? It should be 9Thanks for the response. But why sizeof(g1) will not change ?
Why the size of array "g1" is 6 after strcpy ? It should be 9#include<iostream> #include<string.h> using namespace std; int main(){ char g1[] = "hello"...
Need help with MacrosThanks a lot to all of you for such a quick responses. I will try to avoid this undefined behavior. ...