answersLogoWhite

0

Everything. "inline" refers to functions, "const" refers to variables.

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

What is the difference between an inline object and a floating object?

A floating object can be moved independently of the surrounding text characters.


What is difference between volatile int and const volatile int?

volatile int means the code and fom outside from code can changes the value but in const volatile int, code cannot changes the value but fron ouside can change the value


C plus plus code to calculate a right angle?

Right angles are always 90 degrees. There is no need to calculate this; an angle is either 90 degrees or it is not. The following inline function is all you really need: inline const bool IsRightAngle(double angle) { return(angle==90.0); }


What is the source code for a method called max?

That depends on the programming language and the exact implementation of max. Normally, a max function returns the largest of two variables of the same type but can also be applied to a sequence container with 2 or more elements. Both versions may also include a user-defined predicate to perform the comparison(s). In the C++ standard library, it is implemented as a generic algorithm (a function template) with 4 overloads. These functions become accessible when you include the <algorithm> header from the standard library. They each have the following definitions: // TEMPLATE FUNCTION max template<class _Ty> inline _Post_equal_to_(_Left < _Right ? _Right : _Left) const _Ty& (max)(const _Ty& _Left, const _Ty& _Right) { // return larger of _Left and _Right return (_DEBUG_LT(_Left, _Right) ? _Right : _Left); } template<class _Ty> inline _Ty (max)(_XSTD initializer_list<_Ty> _Ilist) { // return leftmost/largest const _Ty *_Res = _STD max_element(_Ilist.begin(), _Ilist.end()); return (*_Res); } // TEMPLATE FUNCTION max WITH PRED template<class _Ty, class _Pr> inline const _Ty& (max)(const _Ty& _Left, const _Ty& _Right, _Pr _Pred) { // return larger of _Left and _Right using _Pred return (_DEBUG_LT_PRED(_Pred, _Left, _Right) ? _Right : _Left); } template<class _Ty, class _Pr> inline _Ty (max)(_XSTD initializer_list<_Ty> _Ilist, _Pr _Pred) { // return leftmost/largest const _Ty *_Res = _STD max_element(_Ilist.begin(), _Ilist.end(), _Pred); return (*_Res); }


Is a inline object an object that can be positioned at a specific location in a document or in a layer over or behind text in a document?

No. Block level elements can be positioned using CSS. Inline elements fall into the text line. That said, you can use CSS to declare an inline element be displayed as a block level element, or as an inline-block, which more or less splits the difference.

Related Questions

What is the difference between v engine and inline engine?

The difference between a v engine and inline engine is that in v type engine the pistons and cylinders are aligned in in a v shape and in an inline type engine the pistons and cylinders are all vertical or inline with each other.


Difference between normal function inline function?

gffg


What is the difference between an inline graphic and a floating graphic?

inline is picture staying still and floating graphic is moving around


Difference between inline code and code behind model?

Inline code is written in html file. code behind is written in separate file.


Difference between const char and char const?

const char *p means the char value pointed by 'p' is constant we can't change anyway but the address(location) of 'p' can change. char const *p means the char value pointed by 'p' can change but the location of p can't be change it is constant.


What is the difference between an outline and inline?

For the inline functions compiler just copies the function code in that place and when the size is too big it treats that function as ordinary function.


Whats the difference between inline and ice hockey girdles?

There is no difference i have friends that play Inline Hockey and Ice Hockey and they use the same girdles. -- Inline Hockey girdles are supposed to be worn under pants, so often the surrounding nylon is not much robust, and they are tighter to the body.


Different between written and unwritten const?

The difference between written and unwritten consent is that one is actually written down on paper, and the other is an oral agreement.


What is the difference between an inline object and a floating object?

A floating object can be moved independently of the surrounding text characters.


What is the difference between an floating object and a inline object?

A floating object can be moved independently of the surrounding text characters.


What is difference between volatile int and const volatile int?

volatile int means the code and fom outside from code can changes the value but in const volatile int, code cannot changes the value but fron ouside can change the value


Write a C program to find the count of digit?

inline int getNumDigits(const int n) { return ((int) log10(n) + 1); }