answersLogoWhite

0


Best Answer

C: there are no methods in C.

C++: no.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you declare a method within a method in c or c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a method in c plus plus?

In C++, methods are simply class member functions.


Is it corrrect to declare a variable in c or c plus plus as two or three words for eg int seg no?

No., If you want to declare you jus use _ in between so the declaration will be like int seg_no;


What do you call an object function in c plus plus?

method


Why you need to declare variable 1st in turbo c plus plus?

In C++ all names (including variables) must be declared before they can be used.


How the end of file can be detected in c plus plus?

Use the istream::eof() method.


Can you make private class in c plus plus?

yes it is possible to make a private class in C++ but this class will not solve any purpose.................


Is it possible to declare a keyword as an identifier in c plus plus?

No. Keywords are reserved and cannot be used as identifiers. However, C/C++ is case-sensitive. So although register is a reserved keyword, Register is not.


Why need to declare header files compulsory in c plus plus but not in c?

The need to declare header files is not compulsory in C++. You may place all your code in a single source file if you so desire. However, header files are useful in that they separate interface from implementation and aid in hiding information.


What is virtual method invocation in java and net?

Virtual method invocation is a term borrowed from C++. It means that methods are invoked polymorphically. Instead of invoking the method in the compile-time type, the method is invoked as its runtime type. In C++, you declare methods virtual that are executed this way.


Where can you find quine mccluskey method written in C plus plus?

See related link. It's in C rather than C++, but conversion to C++ is fairly simple.


Is overriding a dynamic polymorphism in c plus plus or not?

In C++, overriding and function, method, or operator is a different thing than (dynamic) polymorphism, so overriding a polymorphic method is almost entirely possible.


Which member can not be access from main in c plus plus?

A private member can only be accessed from within a method of the class.(Not 100% certain what the question means. If this answer is not sufficient, please restate the question, giving more details as to what is being asked.)