answersLogoWhite

0


Best Answer

In this video, I Cover an array of essential methods for every developer.

see these videos on YouTube:- Brain Mentors YouTube Channel.

User Avatar

Sunny Kumar

Lvl 3
5mo ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

Either put some array terminator as the last element (like '\0') or return the length of the array as an output from user defined function.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: If an array is declared in user defined function and pointer to this array is returned to main function is it possible to access that array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a function statement?

A function statement is a block where the function is declared and defined.


What is functional statement?

A function statement is a block where the function is declared and defined.


What enables us to use a function that has been declared and defined in source code?

If the function has been declared and defined, then the only remaining issue is scope, i.e. visibility.


What is the name of the function which must be defined in a Java program?

The main function. Every program must have a main function and it must be declared static.


To create a user defined sizeof function?

Not possible.


Is it possible to compose any two functions?

No. If the range of the first function is not the domain of the second function then the composite function is not defined.


Which best describe the domain of a function?

The set of values for which the function is defined.


In a header file whether functions are declared or defined?

Ideally, functions should only be declared in a header and defined in a translation unit (source file) that includes the header. However, trivial functions are often defined in a header as they are usually good candidates for inline expansion, but you must remember to declare the function inline. Often it is better to forward declare inline functions so that maintainers are not distracted by the implementation details which can be placed towards the end of the header, out of the way. However, a definition is also a declaration, so forward declaring an inline function is not a requirement unless there is a cyclic dependency issue where a forward declaration is necessary to break the cycle.


Can an extern function be defined in a C header file?

Declared is the right word. (Don't define functions in headers, unless you really know what you are doing.)


What does domain and estimate the range mean in math?

"Domain" means for what numbers the function is defined (the "input" to the function). For example, "x + 3" is defined for any value of "x", whereas "square root of x" is defined for non-negative "x". "Range" refers to the corresponding values calculated by the function - the "output" of the function. If you write a function as y = (some function of x), for example y = square root of x, then the domain is all possible values that "x" can have, whereas the range is all the possible values that "y" can have.


Which variable is not destroyed on exit from the function instead its value is presented and becomes available again when the function is next called These variables are declared as?

Local function variables defined static remain in memory at all times. Such variables are only in scope (accessible) when the function itself is in scope.


Are functions defined or declared in header files-oops?

Usually declared only-oops.