sizeof is giving you the size of char pointer which is 4 on your platform.
0
solved Dynamic Memory allocation to string, gives out incorrect size [duplicate]
sizeof is giving you the size of char pointer which is 4 on your platform.
0
solved Dynamic Memory allocation to string, gives out incorrect size [duplicate]