Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

What is the difference between a program and an algorithm in C++

0 votes
asked Mar 6, 2018 by anonymous

2 Answers

0 votes
answered Mar 7, 2018 by Shreya Wagh (140 points)

An algorithm is nothing but logical steps to solve the given problem. It is like an abstract idea.

A Program is set of instructions for the machine to solve that problem using any programming language like C, C++, Java etc.

–1 vote
answered Mar 29, 2018 by John Gabriel (310 points)
They are essentially the same. A program consists of one or more algorithms.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...