What is anonymous object in c++?



What is anonymous object in c++?..

Answer / Aditya Narayan

An Anonymous Object, also known as a nameless object or unnamed object, is an object that is declared without a name. They are often used as function arguments or to initialize other objects.nExample: "container<decltype(std::declval<int>() + std::declval<double>())> c = {42.0, 3.14};"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

In a class only declaration of the function is there but defintion is not there then what is that function?

5 Answers   Hughes,


What is stream and its types in c++?

1 Answers  


What is enum c++?

1 Answers  


What is name hiding in c++?

1 Answers  


what is multi-threading in C++?

1 Answers  


What is functions syntax in c++?

1 Answers  


Explain linear search.

1 Answers  


C++ program output? Explain output of this program. #include <iostream> using std::cout; using std::cin; int main() {   cout<<cout<<' ';   cout<<cin;   return 0; } It prints some address in hexadecimal. what is it?

1 Answers  


What are the total number of lines written by you in C/C++? What is the most complicated or valuable program written in C/C++?

2 Answers   Intel,


What is an operator in c++?

1 Answers  


Why c++ is faster than java?

1 Answers  


Explain selection sorting. Also write an example.

1 Answers  


Categories