Click here to Skip to main content
16,015,583 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
OKay, I already solved the problem, FINALLY. :)))
Posted
Updated 13-Oct-13 0:04am
v4
Comments
Andreas Gieriet 12-Oct-13 2:46am    
What do *you* understand under "formal argument"? I don't understand "formal arguments passing method". What the heck do you mean by this?
Cheers
Andi
pasztorpisti 12-Oct-13 15:01pm    
In order to be able to use C/C++ language and a compiler correctly you need somewhat "lower (memory/byte) level" thinking. Its very easy to write a program in C/C++ that compiles with a breeze but is hell incorrect (not semantically) and *may* crash occasionally. An example is returning a reference or pointer to a local variable (declared/defined on stack as an auto variable).

1 solution

The question makes no sense at all. A compiler (and a linker) does not "implement" anything, you do. If a compiler is a correctly working program, it compiles your code correctly, you don't have to "know" that in each particular case.

—SA
 
Share this answer
 
Comments
Member 10205297 12-Oct-13 2:20am    
yeah that`s what I meant. How to know if the compiler compiles the arguments correctly or not?
Andreas Gieriet 12-Oct-13 2:41am    
Go ahead and compile it! Or am I missing something?
Cheers
Andi
Sergey Alexandrovich Kryukov 12-Oct-13 19:51pm    
Of course, you can disassemble the code and see. What's the problem?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900