Define a way other than using the keyword inline to make a function inline?



Define a way other than using the keyword inline to make a function inline?..

Answer / subham chaudhary

The function must be defined inside the class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Write a recursive program to calculate factorial in c++.

0 Answers  


What is the default access level?

0 Answers  


What is setw manipulator in c++?

0 Answers  


Why would you use pointers in c++?

0 Answers  


what are the iterator and generic algorithms.

0 Answers  






Explain dangling pointer.

0 Answers  


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

0 Answers  


Why do we need pointers?

0 Answers  


this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }

1 Answers  


What is pointer to array in c++?

0 Answers  


Why is c++ not purely object oriented?

0 Answers  


List the merits and demerits of declaring a nested class in C++?

0 Answers  


Categories