answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

Why a function is not defined in to another function?

A function is not deigned in to another function. It is because that would lead to dependency injection.


How operator overloading is useful in class based programming?

The concept of Operator Overloading is similar to Method Overloading, in that the meaning of a given operator symbol changes according to the context it is being used in. That is, the semantics of the operator symbol are flexible, rather than fixed.The idea behind Operator Overloading is to take a common symbol, and adjust it's meaning to something logical for contexts other than what it was originally restricted to.The arithmetic operators ( + - * / ) are good examples. Using Operator Overloading, I could define that 'SomeArray + SomeValue' means that I should add SomeValue to the end of the array SomeArray.In general, Operator Overloading is what is called 'syntactic sugar' - it makes things more readable. For instance, the equivalent way to do the above example via method calls would be: SomeArray.addToEnd(SomeValue)The major problem with Operator Overloading is that it depends on people having the exact same interpretation of what an operator would mean in the new context, which is difficult to assure. Going back to the above example, there is some ambiguity as to where 'SomeArray + SomeValue' would mean to add in SomeValue - should SomeValue be added to the start of the array, or the end of the array? The answer is not obvious, and one would have to go look through the overload definition. While this confusion is also possible with methods, properly named methods (i.e. using addToEnd() rather than just add() ) helps avoid this entirely.For this reason, Java does not support user-defined Operator Overloading. Java does support certain operator overloading in narrow contexts, but only those defined by the language itself. That is, the '+' sign is overloaded to allow for string concatenation. However, the designer of Java (James Gosling) decided that his preference was to avoid Operator Overloading completely due to his perception of a "clean" language.


How do you show dynamic time in a HTML page?

It is not possible to do it with HTML alone, you have to use Javascript, PHP or another scripting language that has the time as a built in function.


When a function is used as an argument in another function?

It is called callback function. For an example see the qsort function.


Can you declare a function in the body of another function in c language?

yes, we can not declare a function in the body of another function. but if we declare a function in the body of another function then we can call that very function only in that particular function in which it is declared; and that declared function is not known to other functions present in your programme. So if a function is required in almost all functions of your programme so you must declare it outside the main function i.e in the beginning of your programme.

Related Questions

Operator's FIRST priority if they are involved in an accident with another vessel?

An Operator's first priority if they are involved in an accident with another vessel, is to report the accident. You should do this as soon as possible. This will aid you in getting help to you and the other parties.


Why it is not possible to pass a function as an argument to another function in c?

It is quite possible. A well-known example is the fourth parameter of qsort.


What is the relational database?

Relational database: Relational database means a collection data stored in different tables and each table are linked together by using primary key and foreign key. In relational database, data can be accessed from one table to another without reorganising the required table. The relational database was invented by E. F. Codd at IBM in 1970.


What is HDMI loop output means?

The HDMI loop through function allow an operator to shoot with primary monitor while another uses a second monitor simultaneously.


Is it possible to assign data from one object of a class to another object of a same class?

Yes. In fact this is precisely why the copy constructor and assignment operator exist.


Which toru operator is an example of a domestic tour operator?

this answer was decided that it was unuseful and you should look at another answer.


What is another word for 911 operator?

Dispatcher


What is another name for a hustler?

floozie. operator. streetwalker.


What is another term for the rank of driver operator?

corporal


What was the name of the wireless operator of Titanic?

The first wireless operator on the titanic was Jack Phillips. Another was Harold Bride.


What is another word for cause and effect learning?

Not really, if everyone around you has one.


Why a function is not defined in to another function?

A function is not deigned in to another function. It is because that would lead to dependency injection.