Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is a unary operator?

Answers were Sorted based on User's Feedback



What is a unary operator?..

Answer / ajay yadav

Unary operators are those...which operate on only one
operand.
For eg. a++(only one operand is present) as we are
incrementing the value for a.

Is This Answer Correct ?    7 Yes 0 No

What is a unary operator?..

Answer / ayesha

!
Logical NOT

&
Address-of

~
One's complement

*
Pointer dereference

+
Unary plus

++
Increment


Unary negation

––
Decrement

conversion operators
conversion operators


Of the operators shown in preceding table, the postfix
increment and decrement operators (++ and ––) are treated
separately in Increment and Decrement.

Is This Answer Correct ?    5 Yes 0 No

What is a unary operator?..

Answer / sujatha

unary operator is an type of operator which have only one
operand.

ex : 1)unary plus or minus (to change the sign of variable)
2)increment or decrement ( increase or decrease the
value of variable)


unary plus or minus :

ex :

#inclucde<iostream.h>
void main()
{
int a=-10;
cout<<"a="<<(-a);
int b=20;
cout<<"b="<<++b;
}

out put :

a=10
b=21

Is This Answer Correct ?    2 Yes 0 No

What is a unary operator?..

Answer / mahesh

unary operators r much useful in writting less code but much complex programms as they work on only one operator.

Is This Answer Correct ?    0 Yes 0 No

What is a unary operator?..

Answer / vishal sharma

++,--,+,- these are the unary operators.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

Petrol pump mgt. system: To design a program that display an interface for the sale of the Petrol and then make the entries at the backend in the database.

1 Answers   Wipro,


How is polymorphism achieved?

0 Answers  


In OverLoading concept,Why they are not consider return value and why they are consider only parameters in method? For ex: public int Add(int a,int b){...} public String Add(int a,int b){...}

1 Answers  


What is the difference between C++ and java?

6 Answers   Atos Origin,


WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.

11 Answers  


What is ambiguity in c++

4 Answers   Accenture, Mphasis,


//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }

1 Answers  


Why static functions always uses static variables?

3 Answers  


What is the real time example of encapsulation?

0 Answers  


What is a template?

7 Answers  


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

0 Answers  


Explain polymorphism? What r the types of polymorphism? pls give examples?

4 Answers   HCL,


Categories