What is this "->" ? And what is function "malloc()" and "calloc()"? please explain to me this code. | SoloLearn: Learn to code for FREE!

0

What is this "->" ? And what is function "malloc()" and "calloc()"? please explain to me this code.

https://code.sololearn.com/cVqQhMS4S131/?ref=app

1/26/2020 1:22:04 PM

Dagbfatih

5 Answers

New Answer

+3

* About malloc, calloc, realloc, free (C dynamic memory related functions) http://www.cplusplus.com/reference/cstdlib/malloc/ * About member access operator `->` refer this https://en.cppreference.com/w/c/language/operator_member_access

+5

Dagbfatih, do you absolutely need to understand this code now? You have just started the C tutorial, so everything you don't understand in this code will come up, and you'll understand it naturally.

+2

HonFu Thank you HonFu but I learned C language before

+1

Did the former answers do the trick for you?

+1

yes it helped thanks