Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Suffix Prefix sum java

Fri Nov 04, 2011 4:49 pm

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,



Re: programming

Sat Nov 05, 2011 4:17 pm

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

Post a reply
  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     -  
 Suggestion for job in java     -  
 Java Coding     -