PrepZone Logo
PrepZone
Back to Fundamentals

Fundamentals · Easy

What is a function? Explain parameters, return types, and function calls.

FresherFundamentalsProgramming Fundamentals

Answer preview

A function (method) is a reusable block of code that performs a specific task. It takes parameters as input and may return a value.…