User profile: ngoyal1987

User info
User name:ngoyal1987
History
Joined:
Number of posts:12
Latest posts:

Why the size of array "g1" is 6 after strcpy ? It should be 9
Great !!! Thanks a lot everyone for your responses. :)

Why the size of array "g1" is 6 after strcpy ? It should be 9
we 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 9
Thanks 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 Macros
Thanks a lot to all of you for such a quick responses. I will try to avoid this undefined behavior. ...