Structs , accessing to struct info with a function

I don’t understand why, when he creates the function to print the information from the struct,

Void printPersonInfo (Person p);

He acess the struct Person, by typing, “Person p”, why person p? if the struct is called just person?

Which course/lecture?

Sorry its the first time i coment on the forum, this is the route i get:

[C++ Programming for Blockchain Developers]
[Categories]
[Object Oriented Programming (OOP)]
Structs C++

Its the first lesson.

1 Like

Hi @Ilovelamp,
I see, yes this can be confusing when you start out with coding. I hope this little explanation makes sense to you:
FunctionInputVariable

1 Like

Bhujanga you are the man! Thanks a lot, I get it now.