Home Discussion Discuss: Simple Assignment Operator

  • Not satisfied with the outputMitali October 21, 2011 at 5:17 PM

    If x -= y; x = (x - y); wher x = 5 & y = 10 then x = (x-y) x= (5-10) x= -5. I have executaed the program and the output is 5 too. Make me understand why it's not -5.

Post your Comment



Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Related Articles
General

Assignment operator in java
Assignment operator in java Assignment operator is very common to almost all... the value to the variable lying on the left side. Java assignment operator... to be assigned to the variable to the left side. Assignment operator is also used 

General

Simple Assignment Operator
Simple Assignment Operator       Assignment operator... lying to the left side of the assignment operator. But, If the value already 

Java Beginners

Assignment
Assignment  any one can help with a java assignment 

Java-Tutorials

Assignment Operators in java 7
. = (Simple assignment operator) - This is simple assignment operator Which assigns... to the variable by using any assignment operator. Your variables are placed left side of your assignment operator and value is putted right side 

IDE Questions

assignment
 

Java Beginners

assignment
 

Java Beginners

Assignment
 

Java Beginners

assignment
 

PHP Tutorial

PHP Assignment Operators
Assignment Operator: We  have used the basic assignment operator in our life but a confusion may occur between an "assignment operator"... are described: Example of PHP Assignment Operator: <?php $a=($b=23)+12 

General

Java Operators
; Simple Assignment Operator Assignment operator is the most common operator almost used with all programming languages.  ... Java provides a run-time operator instanceof to compare a class 

General

Operator Precedence
Operator Precedence       Operator Precedence : In Java, Operator Precedence is an evaluation.... When two operators share an operand then operator with the higher precedence 

Java Beginners

Assignment problem
Assignment problem  hello, I am designing a program partaining job assingment using hungarian algorithm,but i am totally confused, please help me out 

Java Beginners

Programming Assignment
Programming Assignment  Hey there, We were given an assignment to write a program to read 10 student marks from the keyboard without using an Array (only using switch statements, if statements or loops). As each mark is input 

Java Beginners

my assignment
...this is my assignment....plz 

Java Beginners

assignment in OOP1
assignment in OOP1  Filename: CharCount.java Instructions: Ask a user to input a string Program should determine the number of occurrences of the letters contained on the input string based on the English alphabet. Note 

JavaScript Questions

java assignment
 

Java Beginners

JAVA assignment
 

Java Tips and Examples

Extended Assignment Operators
Java Notes: Extended Assignment Operators   In this tutorial you will learn how to use the extended assignment operators.   It's very common... assignments like this is to use the += operator.   It's one operator symbol 

Java Beginners

Java with OOP assignment (Eclipse)
Java with OOP assignment (Eclipse)  How do i control the length of characters in an input? E.g.: Enter your name > Hi * Name too short 

JSP Servlet Questions

Assignment of variables - JSP-Servlet
Assignment of variables  How to assign a javascript variable value to a java string variable. .... var strName="Tarunkanti Kar"; .... ... I want to access the script variable in java variable please give 

Java Tips and Examples

Operator Precedence
flow. The assignment operator ("=") is treated as an operator with low... Java Notes Operator Precedence Purpose of this lesson: Higher...), not (a+b)*c. Ever operator has a precedence (a number) associated 

Java Beginners

What is the % operator?
What is the % operator?   Hi, What is the % operator? thanks 

Hibernate Questions

AND operator in hibernate.
AND operator in hibernate.  How to use AND operator in hibernate 

Hibernate Questions

OR operator in hibernate.
OR operator in hibernate.  How to use OR operator in hibernate 

Java Beginners

java assignment - Java Beginners
java assignment  I got assignment in "design a vehicle class hierarchy in java,write a test program to demonstrate polymorphism".please send me the necessary codings and algorithm.  Hi Friend, Try the following code 

JSP Servlet Questions

assignment of variables - JSP-Servlet
assignment of variables  How to assign a javascript variable value to a java string variable. .... var strName="Tarunkanti Kar"; .... ... I want to access the script variable in java variable please give 

Java Interview Questions

Java operator
Java operator  Which Java operator is right associative 

Java Interview Questions

Java operator
Java operator  What is the difference between the prefix and postfix forms of the ++ operator 

Java Interview Questions

Java operator
Java operator  What are the legal operands of the instanceof operator 

Java Beginners

Urgent programming assignment
Urgent programming assignment   Hi, I am an Indian student in USA.I have been able to write all the java codes successfully , however this one is giving me tremors.Any help would be highly appreciated.I am attaching 

DMCA.com