7th Oct 2019, 4:25 PM
JoѕŠ½Ļ…Ī±
JoѕŠ½Ļ…Ī± - avatar
4 Answers
+ 3
Thanks bro
7th Oct 2019, 5:31 PM
JoѕŠ½Ļ…Ī±
JoѕŠ½Ļ…Ī± - avatar
+ 1
I have created a pointer named "full_name" which stores the address of memory returned by malloc. So the value stored in the variable is an address. So how it prints the string when i just used printf("\nHi, %s.", full_name); I thought i should use *full_name in printf to print string Because full_name just holds the addresss right?
7th Oct 2019, 4:48 PM
JoѕŠ½Ļ…Ī±
JoѕŠ½Ļ…Ī± - avatar