How is this c++ code with default parameters can be compiled? : <p>Here is a simple example program which demonstrates what I want to asking for:</p>

<pre><code>class A {
public:
    int writemem(FilInfo* file, IN BYTE* mem, IN DWORD memSize, BYTE obfs=0, BOOL bEnc=TRUE);
};

void main() {
...
    (this-&gt;writemem(file, mem, memSize), obfs); // does not print compilation error!
...
}
</code></pre>

<p>How is the above code compilable? Compiling the above program was successful although it does not work what I intended.
I am working on Windows 8.1 with VisualStudio SDK 7.1.</p>
