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 are c header files?
What is calloc malloc realloc in c?
Is c is a procedural language?
What is declaration and definition in c?
How can this be legal c?
write a c program for swapping two strings using pointer
explain what is a newline escape sequence?
Stimulate calculator using Switch-case-default statement for two numbers
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What is structure data type in c?
What is the difference between scanf and fscanf?
What is use of pointer?
What is the description for syntax errors?
How can a number be converted to a string?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none