answersLogoWhite

0


Best Answer

When an array name is passed as a function argument, the address of the first element is passed to the function. In a way, this is implicit call by reference. The receiving function can treat that address as a pointer, or as an array name, and it can manipulate the actual calling argument if desired.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What happen when a c program passes an array as a function argument?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What argument passes in a method that will reference the content and can change the variable in the method?

That is called passing an argument by reference.


Write a C program to find out whether character passes through keybroad is a digit or not?

hey..it s simple..make use of built-in function isdigit(character)..it s in stdlib.h...


What is void main in C programming?

The main function in C serves as the entry point of your application. A C program is not valid without a main function. There can only be one main function in your program, but you may use a choice of prototypes: int main (void); int main (int argc, char* argv[]); You use the first version when your program has no need for command line arguments (also known as command line switches). The second version passes the full command line in the argv argument as a null-terminated array of null-terminated strings. The argc argument holds the count of strings in argv and is always at least 1 since the program name is part of the command line (stored in argv[0]). Any switches passed to the program will be found in argv[1] through argv[argc-1]. The last argument, argv[argc], is always the null-terminator (a pointer to null). The return value allows you to return an integer to the host environment. Typically you will return 0 to indicate success and -1 to indicate failure. The void main (void); prototype is allowed in most implementations of C (but not in C++). This simply indicates no return value is expected. However, the prototype is non-standard and if your program makes use of the exit() function to terminate, your program will return whatever value you pass to the exit() function. Your implementation of C may also allow additional prototypes, however only the first two shown above are standard across all implementations. For portability, it is best to use one of these at all times.


What are the phases and passes of a general language processor?

Language processor consist of two phases 1.Analysis phase 2.Synthesis phase Language processor pass is the processing of every statement in a source program, or its equivalent representation to preform language processing function pass 1-It analyses the source program and notes relevant information. pass 2- It synthesizes the target program


How do you link a programming with other programming languages?

This is done via a call sequence. The syntax is different between languages but the process is about the same. The calling program issues a call to the called program and passes data items known as arguments. These arguments are used to instruct the called program on what actually to do. After the called program has completed its function it passes these arguments back to the calling program along with a return code to inform the calling program everything was ok, or not ok.

Related questions

What argument passes in a method that will reference the content and can change the variable in the method?

That is called passing an argument by reference.


How can you tell if a graph show a FUNCTION?

By doing a vertical line test. If you can draw a vertical line and it only passes through the graph once, its a function. If it passes through twice, it is NOT a function.


Write a C program to find out whether character passes through keybroad is a digit or not?

hey..it s simple..make use of built-in function isdigit(character)..it s in stdlib.h...


Can a parabola represent a function?

If a vertical line passes through the supposed function at only one spot then you have a function.


When is it not a function?

A function is not a function if it passes through the vertical line test more than once, and it is not linear or a quadratic.


When did Battle of the Head of Passes happen?

Battle of the Head of Passes happened on 1861-10-12.


Broward county free bus passes for the poor?

is their a program for free bus passes for the poor in broward county


What is void main in C programming?

The main function in C serves as the entry point of your application. A C program is not valid without a main function. There can only be one main function in your program, but you may use a choice of prototypes: int main (void); int main (int argc, char* argv[]); You use the first version when your program has no need for command line arguments (also known as command line switches). The second version passes the full command line in the argv argument as a null-terminated array of null-terminated strings. The argc argument holds the count of strings in argv and is always at least 1 since the program name is part of the command line (stored in argv[0]). Any switches passed to the program will be found in argv[1] through argv[argc-1]. The last argument, argv[argc], is always the null-terminator (a pointer to null). The return value allows you to return an integer to the host environment. Typically you will return 0 to indicate success and -1 to indicate failure. The void main (void); prototype is allowed in most implementations of C (but not in C++). This simply indicates no return value is expected. However, the prototype is non-standard and if your program makes use of the exit() function to terminate, your program will return whatever value you pass to the exit() function. Your implementation of C may also allow additional prototypes, however only the first two shown above are standard across all implementations. For portability, it is best to use one of these at all times.


A control break occurs when a program?

passes logical control to a module contained within another program


When the federal government passes authority to administer a program down to state or local governments what is it called?

When the federal government passes authority to administer a program down to state or local governments, it is called


What is the function of the branchi?

the function of the bronchi is to help filter out the particles breathed in. the air enters the bronchiole and oxygen passes through he alveoli wall while the co2 and other waste passes out the body


Why is y equals -8 a function?

y = -8 is a function because when graphed, it passes the vertical line test.