What's the difference between passing a struct pointer and declaring it inside the function itself?
1 Answer
New AnswerI am making a queue using linked list without using global variables.
10/10/2020 5:39:21 PM
Raj Priyadarshi1 Answer
New AnswerIf you declare it inside the function then you can not use it outside that function or inside another function. Passing struct pointer means you are passing that struct into the function from.outside the function than you can perform any operation on it that will also affect the original stuct object outside the function
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message