Code:class X{ private: int x; public: X() {} void func() { cout<<"In func()"<<endl; } }; int main(void) { X *x=NULL; x->func(); return 0; }
In func()
This function has no data members manipulation, so there will not be a segfault.
Avi
Avi Dullu's Code Arena
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks