0

what is the difference between implicit and explicit declarations of a variable? Please give examples.

9th Jul 2016, 4:43 AM
Aastha Aneja
Aastha Aneja - avatar
2 ответов
+ 5
var a = 11; // implicit variable declaration int b = 12; // explicit variable declaration
9th Jul 2016, 9:18 PM
Ivan G
Ivan G - avatar
+ 2
static void main () { int i=10; object o=i; /implicit declaration (implicit boxing) object k=(object)i; /explicit declaration (explicit boxing) console.writeline(i); console. writeline(o); console.writeline(k); }
9th Jul 2016, 8:01 AM
Pamu Vineeth
Pamu Vineeth - avatar