cklangford98 cklangford98
  • 02-03-2018
  • Computers and Technology
contestada

Given the code below, what would output to the Console Window?

Think carefully on this one...it is tricky!
C#
1
string a = ”10”;
2
string b = “20”;
3
Console.WriteLine(a+b+5);

Respuesta :

spikespaz
spikespaz spikespaz
  • 03-03-2018
I don't know C# but based on experiences in other OOP languages and languages in general, you get a type error, whatever format that may be for C#. You cannot concatenate "10" and "20" as strings and then attempt to add an integer 5 unless the language has inferred type coercion.
Answer Link

Otras preguntas

!!Help!!Polysaccharides are healthier for the body than mono- or disaccharides are. What choices could you make to increase your consumption of polysaccharides
Please help IM BEGGING YOU
Suddenly Ollie was a freight train racing into the house meaning
What was the Framer’s vision for the judicial branch? What evidence supports this from Article III itself?
can somebody explain this
Two groups of related living things are no longer considered to be the same species when a. They can no longer interbreed. b. They do not eat the same food. c
Please answer correctly !!!!! Will mark brainliest !!!!!!!
Use the multiplier method to increase £258 by 43% You must show your working
The pigment that absorbs energy from the sun for photosynthesis is called; A chlorophyll B condensation C photosynthesis
I really do not know what to write. Could you all please help me with this assignment? It is due tomorrow and I need to get it done asap.