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 |
fn f(x) { if(x<=0) return; else f(x-1)+x; }
#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf("\n%d",j) i+=j; } }
write a program to swap two variables a=5 , b= 10 without using third variable
What are the advantages and disadvantages of a heap?
Explain void pointer?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
Write a C/C++ program that connects to a MySQL server and checks intrusion attempts every 5 minutes. If an intrusion attempt is detected beep the internal speaker to alert the administrator. A high number of aborted connects to MySQL at a point in time may be used as a basis of an intrusion.
What is a constant and types of constants in c?
What is table lookup in c?
YBJBU6
How to declare pointer variables?
What is string in c language?