Identify the error in the following program.
using namespace std;
num==num ? cout<<"Success" : cout<<"Error";
Answer Posted / hr
num  =  num?. You should write index number after array name but here index number is mention before array name in  num
So expression syntax error will be shown.
Correction : num = num? is the correct format.
|Is This Answer Correct ?||0 Yes||0 No|
Tell me difference between constant pointer and pointer to a constant.
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
What is difference between class and structure in c++?
If I is an integer variable, which is faster ++i or i++?
What is rvalue?
Why do we use string in c++?
How to declare a function pointer?
Is overriding possible in c++?
How is modularity introduced in C++?
Write about an iterator class?
What are friend classes?
Does c++ vector allocate memory?
Mention the ways in which parameterized can be invoked. Give an example of each.
How is computer programming useful in real life?
Can you overload the operator+ for short integers?