CAN WE DEFINE ANY FUNCTION WITHIN A FUNCTION.

Answer Posted / aparna

no....we cant define a function with in another
fn......Insteadwe can declare a function..
ex:
void main()
{
int fun(int); // this is declaration
fun(3); // this is fn. calling
}



int fun(int a) //this is fn.definition
{


}

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What standard functions are available to manipulate strings?

554


Why c language is called c?

562


What is wrong with this code?

687


What is wrong with this program statement?

602


Why is c so powerful?

674






What is unsigned int in c?

551


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

605


how is the examination pattern?

1590


Explain what header files do I need in order to define the standard library functions I use?

645


What is c standard library?

687


What happens if header file is included twice?

648


What is the -> in c?

576


Why #include is used in c language?

588


How do we open a binary file in Read/Write mode in C?

672


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

655