this program returns a pointer to a structure. When i print the contents, the name is not being displayed properly, where as the other tw
You created stu locally on the stack in your create function. When you returned from that function, the stack was popped, invalidating the data you pointer points to.