Hi There,
can some one tell me how to declare a function with a pointer to a structure, i know how to do it with the structure outside of the main function but unclear how to do it with the structure inside.
basically how do i declare the functionsCode:void function(); void main() { struct hello{ int goodbye; int evening; } hello.goodbye = 1; function(); } void function() { printf("%d", hello->goodbye); }
thanks



LinkBack URL
About LinkBacks


