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
How can you call a function, given its name as a string?
What are the different data types in C?
what is the diffrenet bettwen HTTP and internet protocol
What are the string functions? List some string functions available in c.
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
What is structure padding and packing in c?
What is the difference between local variable and global variable in c?
What is the explanation for cyclic nature of data types in c?
Write a program to reverse a given number in c?
What are all different types of pointers in c?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What is sizeof array in c?
What is typedf?
Whats s or c mean?
Write a program to generate the Fibinocci Series