Tuesday, October 9, 2007

TECH NO 2

#include
void main ()
{
int a[5]={2,3};
printf("\n %d \t %d\t %d",a[2],a[3],a[4]);
}

3 comments:

  1. i think question is wrong

    ReplyDelete
  2. the default values of array are '0'.
    a[0]=2
    a[1]=3
    a[2]=0
    a[3]=0
    a[4]=0


    the output is 0 0 0

    ReplyDelete
  3. yaa there is some mistake in first line

    it is #include"stdio.h" and the output is
    0 0 0

    ReplyDelete