Return type of function

why he has used
node * middleatlist(node * head)

@adarshsingh2k if you have to return the mid point then sir in returning the whole node (mid one)

@adarshsingh2k as you can wee we are returning slow which is of node type thats why

https://ide.codingblocks.com/s/292652 whats the error whh i am getting address

@adarshsingh2k cout node’s data not node here check this

as we have used build list function is there any other way to take input

@adarshsingh2k its fine no issue as most of the time input is in the form
10
1 2 3 4 5 6 7 8 9 10
for that you have to build like this only