answersLogoWhite

0

Can you define a function within a structure?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

No, it is the other way around: you can define a structure within a function.

In C++ though, structs are actually classes, so they can have methods.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you define a function within a structure?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is it possible to define a structure within another structure?

yes


Can you define a function inside a function?

No. Functions should be defined separately. So you would not define a function within a function. You can define one function, and while defining another function, you can call the first function from its code.


What is an organelle?

An organelle is a structure that is found within a cell and serves a specific function.


What is a structure performing a speific function within cell?

A structure performing a specific function within a cell is called an organelle.


How do you define vestigial structure?

Vestigial structure is used in application to structures that are determined genetically but do not have the ancestral function.


Structure performing a specific function within a cell?

organelle


A structure preforming a specific function within a cell?

organelle


What is the term for a structure having a definite form and performing a definite function or function?

An organ is a structure that has a definite form and performs a definite function or functions within the body.


Where is the function of single cell organism performed?

within its internal structure.


What is th structure performing a specific function within a cell?

organelle


What is the basic unit of the structure and function within the human body?

the cell


A structure proforming a specific function within a cell?

That would be an organelle