Can somebody explain how it works? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
7th Oct 2019, 4:25 PM
Joѕнυα
Joѕнυα - avatar
2 ответов
+ 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