Results 1 to 3 of 3

Thread: What will be the output ? give me answer

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Answers
    15

    What will be the output ? give me answer

    x=5
    y=x++ * x++

    what will be the value of y?


  2. #2
    Junior Member
    Join Date
    Oct 2007
    Answers
    6

    Re: What will be the output ? give me answer

    in my view
    the answer may be 25
    because here you mentioned x++ and x++ this means post increment i.e first x will be initialised with value and then x will be incremented


  3. #3
    Contributing Member
    Join Date
    Oct 2007
    Answers
    88

    Smile Re: What will be the output ? give me answer

    Quote Originally Posted by mahesh9920 View Post
    x=5
    y=x++ * x++

    what will be the value of y?
    25 x is post incremebt only


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact