Excuse me, I want to ask please. Sorry if my english is bad.
I have a problem, my lecturer wanted me to make a program which consists only pointer and malloc.
I have a problem in making variable in struct to pointer.
I mean like this
what my lecturer want isCode:struct xampl { int x; };
He said that i can use typedef, but even I tried so many times. I still failed.Code:struct xampl { int *x; };
Is anyone know how to solve this problem?