Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- struct TT
- {
- int nInf;
- TT *pNext;
- };
- void foo(TT &);
- ////////////////////////////////////////////////////
- int main() //
- {
- TT a1, a2, a3;
- a2.nInf = 7;
- foo(a2);
- }
- // Требуется распечатать поле nInf для переменной a2 из функции foo().
- /////////////////////////////////////////////////////
- void foo(TT &x) //
- {
- printf(" a2.nInf = %d \n", x.nInf);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement