answersLogoWhite

0


Best Answer

A structure is a type so you just need to pass the structure as you would any other data type: by reference or by value.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the types to pass a structure to functions?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Pass a structure to functions?

Passing Structure to a function:type specifier function-name (structure-variable);


What are the kinds of sentences according to functions and structure?

sentences according to functions and structure


What structure composed two or more tissue types that work together perform specific functions for the body?

Organ


Basic structure of c n c plus plus?

The basic structure of a C or C++ program is built around types. A structure is a type. A function is a type. A class is a type. All of these types can be built from primitive (built-in) types and can be used to create ever-more complex types.


Why nucleus is not in the same place within different types of cells?

every cell is different, different size different functions different placements in the structure


Wich structure in the male has both reproductive and excretory functions?

The urethra is the male structure which has both reproductive and excretory functions.


What are the subject-matters of data structure?

types of data structure types of data structure


What are the types of trigonometric functions?

There are three types of trigonometric functions, they are: 1- Plane Trigonometric Functions 2- Inverse Trigonometric Functions and 3- Hyperbolic Trigonometric Functions


Types of functions?

there are various types of functions namely composite,polynomials, power,root


What are the structure- functions of a ovum?

barry


How are Structure passing and returning implemented by the complier?

When structures are passed as arguments to functions, the entire structure is typically pushed on the stack, using as many words as are required. (Programmers often choose to use pointers to structures instead, precisely to avoid this overhead.) Some compilers merely pass a pointer to the structure, though they may have to make a local copy to preserve pass-by-value semantics. Structures are often returned from functions in a location pointed to by an extra, compiler-supplied ``hidden'' argument to the function. Some older compilers used a special, static location for structure returns, although this made structure-valued functions non-reentrant, which ANSI C disallows


How can you check whether the contents of two structure variables are same or not?

When structures are passed as arguments to functions, the entire structure is typically pushed on the stack, using as many words as are required. (Programmers often choose to use pointers to structures instead, precisely to avoid this overhead.) Some compilers merely pass a pointer to the structure, though they may have to make a local copy to preserve pass-by-value semantics. Structures are often returned from functions in a location pointed to by an extra, compiler-supplied ``hidden'' argument to the function. Some older compilers used a special, static location for structure returns, although this made structure-valued functions non-reentrant, which ANSI C disallows.