1)which of following operator can't be overloaded.
a)== b)++ c)?! d)<=
Answers were Sorted based on User's Feedback
Answer / 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 |
What is the collection of communication lines and routers called?
Why do we use namespace feature?
main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*
What does 1f stand for?
what is the difference between entry control and exit control statement?
12 Answers Darbari Lal DAV Model School,
Please list all the unary and binary operators in C.
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
what is the need for main function in c?
What is preprocessor with example?
How would you find a cycle in a linked list?
what is the use of ‘auto’ keyword?
What do you mean by c?