Total members 11894 |It is currently Sat Nov 23, 2024 12:42 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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

import java
.io.*;
class 
{

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

}} 

Thank you,




Author:

BCOZ INITIAL VLU OF X=0 AND AFTER U INCREMNT THAT VUJL BY 1..


Author:
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : Suffix Prefix sum java
 Postfix and Prefix Operators table     -  
 2d game in java-Monster-Java 2D Game Graphics and Animation     -  
 What is Java API?!!!     -  
 java or .net     -  
 need help in java     -  
 Using FTP in java     -  
 what is java     -  
 Java course     -  
 Polygon in Java     -  
 java Clipping     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com