+ Reply to Thread
Results 1 to 2 of 2

Thread: Output of the program

  1. #1
    Surfer is offline Senior Member
    Join Date
    Mar 2010
    Posts
    321

    Output of the program

    Code:
    class X{
    	private:
    		int x;
    	public:
    		X() {}
    		void func() {
    			cout<<"In func()"<<endl;
    		}
    };
    
    int main(void)
    {
    	X *x=NULL;
    	x->func();
    	return 0;
    }

  2. #2
    game.iiith Guest
    In func()
    This function has no data members manipulation, so there will not be a segfault.


    Avi
    Avi Dullu&#039;s Code Arena

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Write output of given program
    By TopGun in forum Microsoft
    Replies: 3
    Last Post: 13th June 2011, 22:27
  2. Output of given code
    By Surfer in forum Bloomberg
    Replies: 0
    Last Post: 26th May 2010, 23:24
  3. Replies: 0
    Last Post: 22nd September 2009, 11:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts