#include<iostream> using namespace std; class Foo { void Bar( void ) const ; }; int main() { Foo f; cout<<sizeof(f)<<endl; }
I ran this in g ++, it did not give me any compilation error. In addition, he completed the task o / p 1, which is correct. But I was expecting a binding error. Is this compiler dependent?
rahul source share