Thread: Random C++ questions split

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    2

    Random C++ questions split

    What is the difference between object and class?

  2. #2
    Registered User
    Join Date
    Jan 2010
    Posts
    2
    Main()
    {
    int i=36752;
    printf("%d",++i);
    }

    What is the output of i??

  3. #3
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    What is the difference between object and class?
    Code:
    Main()
    { 
    int i=36752;
    printf("%d",++i);
    }
    
    What is the output of i??
    why post random stuff in this thread? just make a new one...and i think that the code question you wrote has been answered already a while ago

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by saikrishna View Post
    What is the output of i??
    what do YOU think it will be?

    look up the increment prefix (++) operator. a good C++ book or online reference will tell you exactly what you want to know. The first place to look might be the tutorials on this website.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. Lesson #3 - Math
    By oval in forum C# Programming
    Replies: 2
    Last Post: 04-27-2006, 08:16 AM
  3. time Delays and Random functions
    By markphaser in forum C++ Programming
    Replies: 17
    Last Post: 02-20-2006, 07:10 PM
  4. Random number generator
    By Caze in forum C++ Programming
    Replies: 6
    Last Post: 12-03-2002, 08:10 AM
  5. Random Problem?
    By dizz in forum C++ Programming
    Replies: 4
    Last Post: 11-20-2002, 05:00 PM