Total members 10261 | Gratitudes |It is currently Wed May 23, 2012 9:35 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: programming
PostPosted: Fri Nov 04, 2011 4:49 pm 

Hello,
Can anybody explain me why output of this program is 0 not 1 :

import java.io.*;
class T {

public static void main(String args[]) {
int x = 0;
x = x++;
System.out.println(x);

}}
Thank you,


TOP
  
Reply with quote  
 Question subject: Re: programming
PostPosted: Sat Nov 05, 2011 4:17 pm 
BCOZ INITIAL VLU OF X=0 AND AFTER U INCREMNT THAT VUJL BY 1..


TOP
  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  

 Similar topics
 programming
 c++ programming
 Programming
 ALP programming
 hello pls i want the codens in c# programming
 Suggest course for programming
 javascript programming
 C++ programming
 i want some help in java programming
 How do you know when to use the right programming language?

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 4 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team