answersLogoWhite

0

statement should not return a value but function returns a value

User Avatar

Wiki User

14y ago

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, {}.


Why is syntax important in VB Scripting?

The syntax of function (I hope that Function is related to function syntax):1. Helps you in using or calling the function even though you do not know the whole implementation inside it2. Helps the compiler in performing the cross check of the function called used in code, as it checks if the syntax matches with used one or not.3. Helps in solving compiler error to some extent.I think it is the 'function prototype' what you think of. Syntax is a set of rules that formally describe a programming language.


What is return means in programming?

A return statement exits the function in which it is declared and gives control to the calling code. Returning from the main function exits the program and gives control to the execution environment.


What is flow control statement used in C programming?

Flow control statements are those statements that cause execution to branch or jump to a new section of code, often upon evaluation of some conditional expression (a decision statement such as an if or switch statement). The break, continue, goto and return statements are all flow-control statements. Function calls are not considered to be flow control statements since functions can be inline expanded (by the compiler) and would therefore follow the normal flow of execution.


Is a function call a form of branching in C plus plus?

No. A branch is akin to a goto statement in procedural programming. The code branches off to a new code segment, never to return. A function call is akin to a subroutine in structured programming. When the subroutine is finished, control is returned to the instruction immediately following the function call, just as if the function's code were inline expanded at the call site.

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, {}.


In computer jargon what and the difference between a statement and a comment?

In computer programming, a statement is a line of code that performs a specific action, such as assigning a value or executing a function. In contrast, a comment is a note within the code intended for human readers, often used to explain or clarify the purpose of the code. Comments are ignored by the compiler or interpreter and do not affect the program's execution, while statements directly influence how the program runs.


Why is syntax important in VB Scripting?

The syntax of function (I hope that Function is related to function syntax):1. Helps you in using or calling the function even though you do not know the whole implementation inside it2. Helps the compiler in performing the cross check of the function called used in code, as it checks if the syntax matches with used one or not.3. Helps in solving compiler error to some extent.I think it is the 'function prototype' what you think of. Syntax is a set of rules that formally describe a programming language.


Why you use main function in c?

Because if you donot use main function in c program, the compiler willnot execute the program.C compiler starts execution from main function itself.


What is return means in programming?

A return statement exits the function in which it is declared and gives control to the calling code. Returning from the main function exits the program and gives control to the execution environment.


What is if statement in access?

The If function in Access is known as IIF. It has a second I because it stands for Immediate IF. It allows you to make choices and decisions, similar to programs like Excel which has an IF function, or computer programming languages.


What is flow control statement used in C programming?

Flow control statements are those statements that cause execution to branch or jump to a new section of code, often upon evaluation of some conditional expression (a decision statement such as an if or switch statement). The break, continue, goto and return statements are all flow-control statements. Function calls are not considered to be flow control statements since functions can be inline expanded (by the compiler) and would therefore follow the normal flow of execution.


What is a function statement?

A function statement is a block where the function is declared and defined.


Differentiate between structure and function?

daffirentiate structure and function


What is another name for the keyword "function" in programming?

In programming, another name for the keyword "function" is "method."


How will you differentiate a function from relation?

algebra


Is a function call a form of branching in C plus plus?

No. A branch is akin to a goto statement in procedural programming. The code branches off to a new code segment, never to return. A function call is akin to a subroutine in structured programming. When the subroutine is finished, control is returned to the instruction immediately following the function call, just as if the function's code were inline expanded at the call site.