Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <mystruckt.h>
- using namespace std;
- void return_str( str_ *my_str )
- {
- printf("%d", my_str->i );
- }
- int main()
- {
- str_ test = {1, 3.14};
- return_str( &test );
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement