Re: Re: How to redo the same code using structs

Home Forums C Programming How to redo the same code using structs Re: Re: How to redo the same code using structs

#3596

You really just need to group all your data together ( structs are handy for this purpose ). So if you have a function prototype like:

change it to:

when you need to access a member of the struct , just use the dot operator and use the data as usual:

not too much to the conversion …….

0 Shares
Share
+1
Tweet
Share
Stumble