Amit Kumar

Amit Kumar

  • NA
  • 16
  • 0

please tell how this program working, (sequence)? output?

Jun 21 2010 3:20 AM
#include <stdio.h>
#include<conio.h>
static int count;
  int incr( ) {return ++count;}
int main( )
{
    
int arr[ ]={1, 2, 3, 4};


    arr[count++]=incr( );
   printf("arr[count]=%d\n", arr[0]);
   printf("arr[count]=%d\n", arr[1]);
   printf("arr[count]=%d\n", arr[2]);
   printf("arr[count]=%d\n", arr[3]);
}


Answers (4)