Pass struct by reference in C

后端 未结 5 665
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-13 02:28

Is this code correct? It runs as expected, but is this code correctly using the pointers and dot notation for the struct?

struct someStruct {
 unsigned int t         


        
5条回答
  •  孤城傲影
    2020-12-13 03:04

    Yep. It's correct. If it wasn't (from the . / -> point of view), your compiler would yell.

提交回复
热议问题