answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

In C programming language what are the so called functions statement statement block function block and expressions?

Statements are composed from expressions. A semi-colon turns an expression into a statement. A function is not a statement it is a type definition. A statement block is a compound statement, one or more statements delimited by braces, {}. A function block is the body of a function. The body must be enclosed in braces, {}.


What is a block in c plus plus?

Assuming you mean a code block, a group of simple statements enclosed in braces {} is regarded as a code block. In other words, a compound statement. Braces are not required around simple statements except when the statement is the body of a function (where braces are mandatory).


Is it possible to place a return statement anywhere in 'C' program?

No. Return statements can only appear within a function body, but they can be placed anywhere within that body. If the function returns a value, then the return statement must also return a value of the same type.


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.


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.

Related Questions

In C programming language what are the so called functions statement statement block function block and expressions?

Statements are composed from expressions. A semi-colon turns an expression into a statement. A function is not a statement it is a type definition. A statement block is a compound statement, one or more statements delimited by braces, {}. A function block is the body of a function. The body must be enclosed in braces, {}.


What is a block in c plus plus?

Assuming you mean a code block, a group of simple statements enclosed in braces {} is regarded as a code block. In other words, a compound statement. Braces are not required around simple statements except when the statement is the body of a function (where braces are mandatory).


Is the gulf of Mexico a state?

No. It is a body of water connected to the much larger Atlantic Ocean, and is delimited by the Florida and Yucatan peninsulas.


Why does your exercise program need to be update occasionally?

To ensure that you are constantly engaging your body in a way that improves its function.


Does getting braces hert?

Yes, getting braces hurts initially. After a few weeks, the pain becomes tolerable and hardly noticeable as the body adjusts.


Is it possible to place a return statement anywhere in 'C' program?

No. Return statements can only appear within a function body, but they can be placed anywhere within that body. If the function returns a value, then the return statement must also return a value of the same type.


What is the function of sacral nerve?

Autonomic nerve function in body


What is meant by extension?

extensible means to enhance the program with new capabilities. In c++, extensibility can be achieved by using virtual function. now first we discuss what is virtual function in c++. " C++ virtual function is a member function of a class, whose functionality can be over-ridden in its derived classes. The whole function body can be replaced with a new set of implementation in the derived class." Through this u can be able to promote extensibility in your program by using Virtual function. Very simple concept.


In what ways is rehabilitation important after sport injuries?

Rehabilitation is important in treating sports injuries. The rehabilitation program will return the injured body part to its normal function.


What is the main function of that organization?

to pump blood throughout the body and keep you alive.


What Has no known function?

APPENDIX has no function in our body


What is the function of the go?

What is the function of the golgi body