Monday, May 24, 2010

C# Question - Please Help ASAP!!!?

i am having some difficulty with these C# questions! i will give you the questions and 4 possible answers, please can you provide me with the correct answer and please explain how you got that answer.... thanks in advance





What would be output by the following section of code ?


int A[4] = {1 , 2, 3, 4};


int i;


for (i=0; i%26lt;4; i++)


{


A[i] = A[i] + A[i];


}





Console.WriteLine (A[i] );





a. 4


b. 0


c. 8


d. 6





***PLEASE SHOW ALL WORKING OUT***

C# Question - Please Help ASAP!!!?
do your own homework - I won't show the details.





c





Easiest way to get the answer is to code it up and run it.
Reply:I applaud you for even knowing about this type of work


No comments:

Post a Comment