answersLogoWhite

0


Best Answer

False. Variables declared within a particular member function are local to that function, and are automatically allocated and deallocated at entry and exit of the function.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is it True or False that Variables declared in the particular member function are know as data members and can be used in all member functions of the class?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why static functions cannot use instant variables?

Static functions are tied to a class, not to a particular object. A static function can only access static variables because it has no knowledge of member variables.


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.


Why all variables are declared with in the function?

It is not necessary to to declare variables inside the function in C. If you declare a variable inside a function, the variable becomes local for the function and another variable of same name can be declared in any other function, but you can not use the variable declared in other function. When you declare any variable outside the function body then the variable becomes global and can be used in any function of the program. Note: errno is an example for a variable declared outside any function.


Why is the value of x in algebra always missing?

In algebra, you are dealing with functions of x, where x is a variable, that can take on any value. If x has a value, then the function has a corresponding value. Then for that particular value of x, you are dealing with just one point on a graph, rather than a graph of the entire function. Functions could be derived to describe physical happenings, such as the voltage at a particular place in an electronic circuit at a particular point in time, so you want these variables to remain as variables, until you need to evaluate the function for a particular value of the variable. (Like what is the voltage on the capacitor after 1 second)


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.


What refers to specialization of particular brain areas for particular functions?

each area of the brain has it's own function and functions in that particular area


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

You can copy them into global variables in the main() function, then have your other functions access those global variables. Global variables should generally be avoided, however.


What mean by reference function in c?

Reference function has no meaning. Variables are passed to functions by reference or by value, depending on the function signature.


Variables that is a functions or not functions?

Here is an example for a variable, which is a function (function-pointer, actually): int (*myfun)(const char *s); myfun = puts; myfun ("Hello, world");


whose variables are also known as global variables?

The variables which are declared outside the main() function is known as global variables and they can be used anywhere in the program. And, the variables which used declare inside the main() function is known as local variables and they can be used inside the main() function only. Example: #include<stdio.h> #include<conio.h> int x,y; // global variables void main() { int a,b; // Local variables ------------ ---------------------- --------------------- getch(); }


What has the author Maurice Heins written?

Maurice Heins has written: 'Complex function theory' -- subject(s): Functions of complex variables 'Selected topics in the classical theoryof functions of a complex variable' -- subject(s): Functions of complex variables


How can you use functions to solve real-world problems?

The basic idea is to represent the relationship between two variables as a function. Many problems in physics, chemistry, etc. use common functions (such as the square function, the square root function, the exponential function), or more complicated functions.