Question:
what does := mean in programming.?
inthenight
2009-05-09 01:01:48 UTC
hi.

what does the statement

x := 5;

mean in programming.

thx!!
Nine answers:
anonymous
2009-05-13 00:44:38 UTC
Hm....



















Assignment statement!

Store x with 5.
jplatt39
2009-05-09 01:20:20 UTC
In Pascal it is the assignment operator, while = is the comparison operator. Thus x:=5 means x is now five while x=5 means true if x equals five and false otherwise.



In C/C++ it's the difference between x=5 and x==5..
lempicki
2016-12-04 12:07:55 UTC
Unix is an working device, like abode windows. Unix programming is programming for the Unix opereating device. each and every working device has unique valuable aspects, and demands categories of code. in lots of circumstances while human beings say Unix, what they actually recommend is *nix frequently. this implies a extensive determination of working platforms consistent with GNU, Unix, Linux and BSD that each and every person have comparable features.
Star Gods, are watching...human!
2009-05-09 01:10:40 UTC
X=5; would mean the variable X has the value of 5 assigned to it. more details, what language?



have you declared the variable? if so as what? a char? a long char? int? string?



good luck with programming
Paul
2009-05-09 01:06:19 UTC
It usually means assignment.



x := 5 // set x equal to 5



Contrast with:



if x = 5 then ... // if x is equal to 5



This is different from languages like C but similar to languages like Pascal and is also widely used in pseudocode and generalised algorithm descriptions
?
2009-05-09 01:21:59 UTC
Assignment in Ada or Pascal .
chuck
2009-05-09 01:04:59 UTC
There is nothing like it in C++ OR php.. there are several like x!= or x+= or x-= nothing like what you just mentioned... :: Is used to use a class without declaring it.
?
2009-05-09 01:05:06 UTC
I kind of resembles a linear programming module.
anonymous
2009-05-09 01:08:52 UTC
http://web.mit.edu/sunsoft_v5.1/www/pascal/lang_ref/ref_assign.doc.html#482


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...