Chat with our AI personalities
...are important things in programming. Example: extern int variable; /* declaration */ int variable= 8; /* definition with initialization */
Anything that you can't put whitespace between. The indivisible elements of a program. Example: printf("Sup world %d",variable); Tokens: (7 total) printf ( "Sup World %d" , variable ) ;
Transient variable can't be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the val ue of the variable can't be written to the stream instead when the class is retrieved from the ObjectStream the value of the variable becomes null
-= Example: variable = 5 variable -= 2 will out put 5
This answer applies to programming languages in general. The equals sign is used for assignment. For example, the code "$variable = 1" assigns the value of 1 to the variable $variable. If you want to test whether values are the same (equality) the double equals sign is used. For example, when you want to verify that $variable has been assigned the value of 1 you would use: $variable == 1