Inline Code Example Here

Recommended Answers

All 3 Replies

__inline int foo()
   cout << "Hello World\n";
   return 0;
commented: Being a serious C++ developer for 20+ years, I still reference the site you posted! :-) +12

The & operator returns the address of the item it is applied to. It should be used with care as it can return an address that you don't expect under some circumstances. In any case, please provide a case of where you think you need to use it and we can better help you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.