Answer Posted / hr@tgksolutions.com
A function in C++ is a collection of statements designed to accept input, perform specific computations, and produce output. The primary purpose of a function is to group tasks that are frequently executed, which helps avoid code duplication. Instead of rewriting the same code for different inputs, you can simply call the function.
In essence, a function is a block of code that executes only when it is invoked.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the main characteristics of c language describe the structure of ac program?
What is a char c?
What is union in c?
What are the different types of control structures in programming?
Explain what standard functions are available to manipulate strings?
what is the structure pointer?
What is volatile variable in c?
How do I read the arrow keys? What about function keys?
What are the scope of static variables?
How reliable are floating-point comparisons?
How many identifiers are there in c?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What is the difference between exit() and _exit() function?
What is a nested formula?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.