Structure-valued functions are usually implemented by adding a hidden return pointer...
plz comments..if possible by a small example
Structure-valued functions are usually implemented by adding a hidden return pointer...
plz comments..if possible by a small example
"Service of the poor and destitutes is the service of the God"
Normative Changes to ISO/IEC 9899:1990 in Technical Corrigendum 1
Incompatibilities Between ISO C and ISO C++
I detect the sweet stench of homework...
U need to upgrade your detection skills....i was reading comp.lang.c FAQ's.....and came across this line...which i couldn't understood...Originally Posted by cwr
"Service of the poor and destitutes is the service of the God"
Normative Changes to ISO/IEC 9899:1990 in Technical Corrigendum 1
Incompatibilities Between ISO C and ISO C++
Perhaps you should improve what you post then, citing where you saw a particular article (or whatever) then asking for clarification.
It's basically addressing how you return a whole structure. It's something you don't need to worry about unless you're actually writing a compiler.Code:struct foo { int a; char b[10]; }; struct foo aFunction ( void ) { struct foo result = { 0 }; return result; }
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.