Hi I want to pass in a struct as an argument in a function, in which this function pass the same struct to another function.
Then in my function 1 which looks like thisCode:StructExample tyExample; void function1(&tyExample);
Then my function 2 looks like thisCode:void function1(StructExample* tyExample) { function2(tyExample); }
Is this the correct way to pass structs as arugment to different functions?Code:void function2(StructExample* tyExample) { //some code to fill in tyExample }