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 is the use of #define preprocessor in c?
How can you tell whether two strings are the same?
Can 'this' pointer by used in the constructor?
How can I change their mode to binary?
What are the advantages and disadvantages of a heap?
Explain what is meant by 'bit masking'?
How does free() know explain how much memory to release?
What is multidimensional arrays
What is a protocol in c?
What is struct node in c?
Tell us bitwise shift operators?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
What is the c value paradox and how is it explained?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is string function in c?