Answer:
Correct answer is option (2) that is "return".
Explanation:
In any programming language, a variable name can be made up of letters (lower and upper case) and digits. we can also use "_" underscore character for declaring the variables but we cannot use any special character like “$”.We cannot use digits in the beginning of variables name. And we also cannot use reserved keywords of the language like "new","return","while" etc. There should not be space between the variable names. Options 1, 3 and 4 are not violating any of these properties. But in option (2), "return" is a reserved keyword. That is why it is not a valid variable name.
Some example of valid variables name:
foo
BAZ
Bar
_foo42
foo_bar
Some example of invalid variables name:
$foo ($ not allowed)
while ( keywords )
2foo (started with digit)
my foo (spaces )
A computer is a big screen and iphone is a handheld device
Answer: this is the Answer your question
Answer:
<em>#include <iostream></em>
<em>using namespace std;</em>
<em>//function definition</em>
<em>void send_variable(int num){</em>
<em> cout<<"The Number is "<<num<<endl;</em>
<em>}</em>
<em>// main function begins here</em>
<em>int main()</em>
<em>{</em>
<em> int x =15; //declares an it variable and assigns 15</em>
<em> // Calls the function send_variable</em>
<em> send_variable(x);</em>
<em> return 0;</em>
<em>}</em>
Explanation:
Using C++ programming language we created the function called send_variable and in the main function we call this function which only displays the value of an int variable passed unto it.