answersLogoWhite

0


Best Answer

The compiler disambiguates function overloads by their signatures. A function's signature is defined by its name and its formal parameters, but not the return type. As you probably know, function overloads cannot differ by return type alone, thus the return type does not form any part of the signature. The compiler determines which function to call based upon the arguments that are passed by the individual callers.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How does the compiler interpret more than one definition of the same name?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why can you not declare void variables in c?

All names must be declared in C so that the compiler knows what each name represents even if the definition of that name has not yet been compiled. Without a declaration, the compiler cannot know what operations are permitted upon the name and therefore cannot notify the programmer of syntax errors.


What is the name of the C compiler used by Linux?

gcc is the most common C-compiler for GNU/Linux platform.


What are invalid variable names?

Invalid variable names are identifiers that are not recognised by the language compiler. All user-defined identifiers (both names and type definitions) must be introduced to the compiler by a declaration. A definition is also a declaration, however a definition is not required to use a name, only the declaration. However, all declarations must be defined somewhere. Different programming languages have different conventions for naming identifier. However, in most languages, a name must always begin with a letter or an underscore, never a digit, because a leading digit usually signifies a value and would only complicate the language compiler's implementation. Case-sensitive languages, such as C treat 'name', 'Name' and 'NAME' as being different identifiers while case-insensitive languages will treat them as being the same identifier.


What is the name of java compiler?

It is simply called the Java compiler. The actual program is usually called Javac.


How do you open a C file as an executible file?

In a canonical C compiler, you type "cc (program file name).c (return) and it spits out "a.out", which is an executable. Works with the original Kernighan and Ritchie C compiler. For C++, use the .cpp extension and "g++" for the compiler: In a terminal window, on MacOS, 'cc (program name).c (return)' 'g++ (program name).cpp (return)' produces an executable named "a.out", which can be run. '-o (some file name . extension) will change the output file name.

Related questions

What is the definition of method overloadind in java?

That means you have two (or more) methods with the same name, but with different signatures - that is, the number or types of parameters are different. The compiler will automatically choose the correct method, according to the parameters provided.


Why can you not declare void variables in c?

All names must be declared in C so that the compiler knows what each name represents even if the definition of that name has not yet been compiled. Without a declaration, the compiler cannot know what operations are permitted upon the name and therefore cannot notify the programmer of syntax errors.


What is the name of c sharp compiler?

csc.exe


What is the name of the C compiler used by Linux?

gcc is the most common C-compiler for GNU/Linux platform.


If during compilation in CC compiler changes the name of the function ie func to 2314ufdifunc what to do so that the compiler will use the same name given by the user?

set the environment variables CC=gcc export CC then it takes the compiler as gcc


What are variable name?

Invalid variable names are identifiers that are not recognised by the language compiler. All user-defined identifiers (both names and type definitions) must be introduced to the compiler by a declaration. A definition is also a declaration, however a definition is not required to use a name, only the declaration. However, all declarations must be defined somewhere. Different programming languages have different conventions for naming identifier. However, in most languages, a name must always begin with a letter or an underscore, never a digit, because a leading digit usually signifies a value and would only complicate the language compiler's implementation. Case-sensitive languages, such as C treat 'name', 'Name' and 'NAME' as being different identifiers while case-insensitive languages will treat them as being the same identifier.


What was Florence Bascom's middle name?

- Basic Compiler....hi.


What are invalid variable names?

Invalid variable names are identifiers that are not recognised by the language compiler. All user-defined identifiers (both names and type definitions) must be introduced to the compiler by a declaration. A definition is also a declaration, however a definition is not required to use a name, only the declaration. However, all declarations must be defined somewhere. Different programming languages have different conventions for naming identifier. However, in most languages, a name must always begin with a letter or an underscore, never a digit, because a leading digit usually signifies a value and would only complicate the language compiler's implementation. Case-sensitive languages, such as C treat 'name', 'Name' and 'NAME' as being different identifiers while case-insensitive languages will treat them as being the same identifier.


What is another name for anemometer?

More definition than name: wind speed indicator.


What is the name of java compiler?

It is simply called the Java compiler. The actual program is usually called Javac.


What is the definition of the name Byran?

The definition of the name "Bryan" is a variant of the name Byron. The meaning of the name "Byran" is at the byres or barn. You can learn more definitions of names at the Think Baby Names website.


What is the name of error check technique that uses c language compiler?

Debugging