SyntaxFix
Write A Post
Hire A Developer
Questions
First malloc allocates memory for struct, including memory for x (pointer to double). Second malloc allocates memory for double value wtich x points to.