Submitted Questions

  • Array Question

    If there are 2 arrays named as test & sample with 20 integer elements in each of these declared as int test[20], sample[20], then which of the following statement is wrong? a)test=sample b)sample=test c)Both a & b d)none of the above

    rizwan

    • Aug 20th, 2011

    in C# arrays are reference variables , so both a and b are correct"c# static void Main(string[] args) { int[] a = new int[5]; int[] b = new int[...

    Srinivas

    • Aug 15th, 2011

    Both a and b are wrong.Option c is correct,Because int test[20] contains 20 elements with different address locations that are differ from int sample[20] addresses