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
What is n in c?
What is a program flowchart and how does it help in writing a program?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
Why c language?
c program for searching a student details among 10 student details
Which function in C can be used to append a string to another string?
How to compare array with pointer in c?
What is wrong in this statement? scanf(ā%dā,whatnumber);
Explain do array subscripts always start with zero?
What is a char c?
What is volatile c?
Hi can anyone tell what is a start up code?
What is the difference between NULL and NUL?
What are header files in c programming?