Why is there " = " sign after age, instead of " ; " sign??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why is there " = " sign after age, instead of " ; " sign???

11th Nov 2016, 9:20 AM
Shees ur Rehman
5 Answers
+ 3
I suppose you mean with a variable? Well, lets go with that. The "=" sign sets a value. It sets the value on the right side of the sign to the variable on the left side. int age = 26; // Sets the variable "age" to 26 int age; // This just declares the variable. It has no value yet.
11th Nov 2016, 2:47 PM
Andreas BeEm Kvist
Andreas BeEm Kvist - avatar
0
wat. a like this? int age = 40;
3rd Dec 2016, 9:13 PM
julio
0
madar chod
11th Dec 2016, 5:20 PM
Utkarsh Srivastav
Utkarsh Srivastav - avatar
0
int age;. //no value int age = 1 978 637; // value is 1 978 637
16th Dec 2016, 1:08 AM
julio
0
yes
18th Dec 2016, 7:38 PM
joseph geoffery
joseph geoffery - avatar