Short answer or circle the response that makes the sentence correct. A function
ID: 3841212 • Letter: S
Question
Short answer or circle the response that makes the sentence correct. A function (must need not) be wholly defined before being used in a program unless one uses a function prototype. Programs (do, do not) begin as ideas in the head of the programmer. C++ (does, does not) perform bounds checking Write out a function prototype for the real function triple that has three integer parameters. A void function must (always, sometimes, never) have parameters. The purpose of a program (is, is not) to present the computer with a compact set of instructions. For functions in C++, the default for passing of arguments is (by reference, by value). Many times the next to the last executable command in a C++ program is system ("pause"); What does this command do? List the five arithmetic operators in order of their precedence. What is a C-style string?Explanation / Answer
1.Ans
By Default function protocal is void
void function_name(arg1,arg2...arg n)
{
return value;
}
other wise using with int float,double,long etc;
2.Ans
in head we are defing include header files
these are useful to import other functions into current program
3.in check out of boundery exception like using with Arrays,structures etc.
4.int function_name(int a,int b,int c)
{
return 0;
}
5.yes void function_name()
{
write code;
}
functions are 4 types
1.function with no ars,no return value
2.functions with no args,return value
3.function witth args,no return value
4.function with args,return value
6.yes program means set of instrections or set of commands.
in Real time time each and every thing is a program.
like Atm mechaine,WEB SITES,ETC.
7.IN C++ we are passing values in 3 ways
1.call by value
2.call by Address
3. call by reference
in first case pass value as perameter to the function,second case pass memory Address of the variable,third case pass reference of the variable or object
8.taught to new programmers as a way to pause a program and wait for a keyboard input to continue.
9.
increment operator(++)
decrement operator(--)
releational operators < > <=,>= etx.
asignment operator ==,=
conditional operators
logical operators and,or etc.
char str[50]
str="hello"
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.