answersLogoWhite

0


Best Answer

No, because there are no objects in C.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you declare an object inside static number function in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How many static function can declare in one class?

It is dependent on the requirement of your usage of the Object of that class


If you want to guarantee that the object remains the same after calling a member function on it how would you declare the function?

You would place the const keyword before the function body: class Object { public: Object():m_num(1){} int GetData() const; private: int m_num; }; int Object::GetData() const { return(m_num); } Since GetData() does not alter the instance, it makes sense to declare the function as constant. Note that class instance data members that are declared mutable can still be altered, regardless of constant functions. The use of constant functions only guarantees the non-mutable members cannot be altered.


The number of cubes that fit inside an object determines its?

volume.


What is friend datatype in object-oriented programming?

A friend is any class, class method or function that is declared to be a friend of a class. Friends have private access to the classes that declare them friends.


What are the function of the noun in the nominative and objective?

In the nominative case, the function of the noun is to serve as the subject of the sentence, performing the action of the verb. In the objective case, the noun functions as the direct object, receiving the action of the verb.


What is an object function?

A function object is a computer programming construct allowing an object to be invoked or called as if it were an ordinary function, usually with the same syntax ...


Can you declare and define the constructor within class?

Yes, you can declare and define the constructor within a class. A constructor is a special member function of a class that is automatically called when an object of the class is created. It is used to initialize the object's data members. The constructor can be declared and defined within the class definition or can be defined outside the class definition using the scope resolution operator (::).


Which of the following function convert an object to a string in python?

By using "str()". Example: number = 2 yourNumber = print("Your number is %s!") % (str(number))


Which is the default variable storage class type in a function?

Everything is an object, and "typed" based on assignation. Your variable will be given a class when you declare it to be something, and the class will depend on what value you give the variable. It is always an object though, and its class may change if you change its value.


How do you return an object in java?

With the command return, followed by an object variable. In the method header, you have to declare the return type as the class of the object.


What is the function of eyepiece or ocular?

An ocular or eyepiece magnifies an object to allow for a closer look. They can be worn outside the eye, or be a piece inside a microscope.


What is the function of NH4CNS in titration?

[object Object]