Home Discussion Discuss: Unary Operators

  • i dont like ur answeramir khan June 13, 2013 at 1:59 PM

    bcz ur answer is so big i need sort answer plzzzzzz reply

  • Java Unary OperatorsWendy Xu September 19, 2011 at 1:14 AM

    This was really helpful! It helped me get a better understanding of Java unary operators! The unary operator chart was clear and explicit, and so were the examples! Good job for the one who constructed this webpage!

  • unary plusuvi December 28, 2011 at 7:31 AM

    For C programming,in the unary plus example, if you assign a negative value to y and then assign +y to x, the result is negative, so my program goes like given below to get the positive value 25. #include<stdio.h> #include<conio.h> void main() { int x,y; clrscr(); y=(-25); x=(-y); printf("%d",x); getch(); }

  • java unary operator { i need help to understand}Rakesh kumar sharma December 7, 2012 at 10:17 PM

    int i=0; k=i++; int j =0; j= j++; sop(i); sop(k); sop(j); ----------------------------- my Question is that latest value of i is assign to sop)(i)...then the output is 1 similarly in K there is post increment so first value is assign to K then there is increment will took place . In the same way when there is post increment take place in j ..then why not latest value of j should be printed out i.e 1 instead of 0 the output of the program is : 1 0 0

  • i need help to understand this .plz help me Rakesh kumar sharma December 7, 2012 at 10:19 PM

    int i=0; k=i++; int j =0; j= j++; sop(i); sop(k); sop(j); ----------------------------- my Question is that latest value of i is assign to sop)(i)...then the output is 1 similarly in K there is post increment so first value is assign to K then there is increment will took place . In the same way when there is post increment take place in j ..then why not latest value of j should be printed out i.e 1 instead of 0 the output of the program is : 1 0 0

Post your Comment



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

operators
 

Java Interview Questions

operators
 

Java Beginners

operators
 

Programming Tutorials

Operators
operator %   Remainder operator Unary OperatorsUnary... to a specified type  Bitwise and Bit Shift Operators ~   Unary bitwise... Operators       

Programming Tutorials

Operators
operator %   Remainder operator Unary OperatorsUnary... to a specified type  Bitwise and Bit Shift Operators ~   Unary bitwise... Operators       

Java Beginners

ciruit operators.
ciruit operators.  Explain the benefit of short ciruit operators 

Java Interview Questions

Java operators
Java operators  What is the difference between the >> and >>> operators 

General

Operators
operator %   Remainder operator Unary OperatorsUnary... to a specified type  Bitwise and Bit Shift Operators ~   Unary bitwise... Operators       

General

Operators
operator %   Remainder operator Unary OperatorsUnary... to a specified type  Bitwise and Bit Shift Operators ~   Unary bitwise... Operators       

Java Beginners

bitwise operators
bitwise operators  Write short note on bitwise operators of Java.   Please visit the following links: http://www.roseindia.net/java/java-tips/data/expressions/slides-bitops.shtml http://www.roseindia.net/java/java 

Mobile Applications Questions

logical operators in objective c
logical operators in objective c  logical operators in objective c 

JavaScript Questions

boolean operators in JavaScript
boolean operators in JavaScript  What boolean operators does JavaScript support 

Quartz Tutorials

SQL AND Operators
SQL AND Operators       The AND operator displays records if both conditions are true. 1st Condition 2nd Condition Result false 

Quartz Tutorials

SQL OR Operators
SQL OR Operators       The OR operator displays records if any of the conditions is true. 1st Condition 2nd Condition Result false 

Java Beginners

bitwise operators
 

Java Interview Questions

Java operators
 

Java-Tutorials

Bitwise Operators in java 7
In this section you will learn about the Bitwise Operators. This is one type of operators 

Java-Tutorials

Arithmetic Operators in java 7
In this section you will learn about the Arithmetic operators. This is one type of operators 

Java-Tutorials

Unary Operators in java 7
In this section you will learn about the Unary operators. This is one type of operators 

Java Beginners

What is the difference between the >> and >>> operators?
What is the difference between the >> and >>> operators?   hi, What is the difference between the >> and >>> operators? Thanks 

PHP Tutorial

PHP Operators
3.5. PHP Operators Operators are used for performing specific tasks. The operators in PHP are same like other programming languages like Arithmetic operators, Assignment Operators, Comparison Operators, and logical operators. 3.5.1. 

PHP Tutorial

PHP Operators
Operators in PHP: Every computer language has its own set of operators, most of the operators are same among all languages and  few languages supports some different set of operators. PHP supports mainly three kind of operators 

Java Interview Questions

difference between == and === operators?
difference between == and === operators?  Is (====) operator available in java or not? difference between 

Java Beginners

precedence operators c++ example
precedence operators c++ example  What is the precedence of operators in c++ and how does it works?   This might be helpful.. Operator precedence 

Java Tips and Examples

Operators
operator %   Remainder operator Unary OperatorsUnary... to a specified type  Bitwise and Bit Shift Operators ~   Unary bitwise... Operators       

General

Operators and Expressions
Assignment Operators Arithmetic Operators Unary Operators... Operators and Expressions       Operators: Operators are such symbols that perform some 

Java-Tutorials

Operators In Java
; Unary Operators : Unary operators are perform operations on a single operand... Operators :   ~ : A unary bitwise complement operator that applied to any...Operators In Java In this section we will read about operators in Java. We 

Java-Tutorials

Operators in java 7
This tutorial describes the concept of operators in java 7 

Java Beginners

left shift and rigth shift operators
left shift and rigth shift operators   hi some programs for left shift and right shift operators 

PHP Tutorial

Arithmetic Operators
Arithmetic Operators Operator is used to perform operation on variable and values. Arithmetic Operators is used to perform arithmetic operations(like... the list of available arithmetic operators : OPERATOR WORK USE 

DMCA.com