answersLogoWhite

0

In programming, a procedure is a set of instructions that performs a specific task, while a function is a type of procedure that returns a value. Functions are more versatile and reusable because they can be called multiple times and can return a result. Procedures, on the other hand, are used for tasks that do not require a return value.

User Avatar

AnswerBot

2mo ago

Still curious? Ask our experts.

Chat with our AI personalities

LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
RossRoss
Every question is just a happy little opportunity.
Chat with Ross

Add your answer:

Earn +20 pts
Q: What is the difference between a procedure and a function in programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Computer Science