1)which of following operator can't be overloaded.
a)== b)++ c)?! d)<=

Answer Posted / nandhini

Which operators can be overloaded?

* The following operators can be overloaded:

1. Unary operators:

+ - * & ~ ! ++ -- -> ->*
2. Binary operators:

+ - * / % ^ & | << >>
+= -= *= /= %= ^= &= |= <<= >>=
< <= > >= == != && ||
, [] ()
new new[] delete delete[]

so c option is correct

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you convert strings to numbers in C?

710


What is scanf_s in c?

631


What is string constants?

660


Calculate 1*2*3*____*n using recursive function??

1517


write a c program for swapping two strings using pointer

2094






Differentiate abs() function from fabs() function.

593


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

2517


Which header file is used for clrscr?

580


How does placing some code lines between the comment symbol help in debugging the code?

548


Explain the difference between exit() and _exit() function?

634


Explain the use of bit fieild.

713


Why is c called c?

627


Explain what are global variables and explain how do you declare them?

639


What is getch() function?

649


Explain Basic concepts of C language?

644