Sunday, 5 July 2015

C Program Asked in TCS-1


Program:

#include<stdio.h>
#include<conio.h>
int main( )
{
      int a[10] = {1,2,3,4,5};
      printf("%d %d %d",a[1],a[6],a[9]);
      return 0;
}

Output:


2 0 0








0 comments:

Post a Comment