Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does ":=" mean in Pseudocode? [closed]

Really basic syntax question in pseudocode. What does := mean in Pseudocode?
Example

a := 1
like image 392
Aneem Avatar asked Apr 21 '12 21:04

Aneem


People also ask

What does := mean in algorithm?

:= is the assignment operator for languages that use single equals sign equality testing. The most well known of those languages is Pascal. Due to C's influence most languages switched to = for assignment and == for testing.

What does Endwhile mean in pseudocode?

ENDWHILE; TheWHILE - ENDWHILE statement defines a program loop. This statement can only be used inside a database procedure. The Boolean expression (boolean_expr) must evaluate to true or false.

What does asterisk mean in pseudocode?

Those symbols marked with an asterisk are user-tuned input parameters to the algorithm.


1 Answers

In pseudo code := means assignment whereas = means equality

a:=1 in pseudo code means a=1 in most languages while, a=1 is generally used for conditional checking in pseudo code i.e. if(a=1) in pseudocode means if (a==1) in most languages.

like image 93
gopi1410 Avatar answered Sep 20 '22 13:09

gopi1410