Computer Science, asked by punol43, 8 months ago


What
is the output
of this
following
code?
>>> int ("4" +"6")​

Answers

Answered by jaiveernirmal2005
0

Answer:

int a = 4;

int b = 6;

b = a++; //b=4 and a=5

Console.WriteLine(++b); //b=5

Answered by vamsikrishna02
0

Answer:

answer is 46

Explanation:

because the given numbers 4 and 6 are given in " ", which mean those are strings. I mean even if you give a integer , it is given in " ", which becomes as strings.

We cannot add strings ... so string will concatenate each other.

Mean "4" + "6" becomes 46. Mean in string the given type doesn't add with each other ,instead it will combine...

Hope it helped u ...

Similar questions