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
Explain what is a pragma?
What is c standard library?
What are the advantages of using Unions?
Write a C program in Fibonacci series.
Explain the difference between ++u and u++?
What are enumerated types?
What is the purpose of 'register' keyword?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
What is the meaning of 2d in c?
What is define c?
What is volatile variable in c with example?
Are local variables initialized to zero by default in c?
Why is it usually a bad idea to use gets()? Suggest a workaround.
What does sizeof function do?