Answer Posted / glibwaresoftsolutions
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
write an algorithm to display a square matrix.
Write a program to print factorial of given number using recursion?
Why is c so popular?
What is the default value of local and global variables in c?
Why we write conio h in c?
What is c mainly used for?
Explain low-order bytes.
What does do in c?
What is a string?
Explain which function in c can be used to append a string to another string?
How do you print an address?
What is the purpose of sprintf() function?
How can I pad a string to a known length?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
how many errors in c explain deply