Easy Office
LCI Learning

Algorithm & syntax

This query is : Resolved 

01 December 2012 What is the basic difference between an algorithm and a syntax ???

01 December 2012 ALGORITHM:In Mathematics/computer science, an algorithm is a step-by-step procedure for calculations. Algorithms are essential to the way computers process data. Many computer programs contain algorithms that detail the specific instructions a computer should perform (in a specific order) to carry out a specified task, such as calculating employees' paychecks or printing students' report cards.

SYNTAX:The basic principle here is word order, which is necessary to give a sentence both structure and meaning. The construction of a sentence or phrase is governed by the rules and prevailing principles applied within the syntax of any given natural language, as well as in languages used for computer programming.

An example of a syntactically incorrect sentence would be: Mice cheese eat. The correct form would be: Mice eat cheese. In computer programming, a syntax error would occur if rules of the particular programming language used are broken.



You need to be the querist or approved CAclub expert to take part in this query .
Click here to login now

CAclubindia's WhatsApp Groups Link


Similar Resolved Queries


loading


Unanswered Queries