4
Answers

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

Amit Kumar

Amit Kumar

14y
1.7k
1
#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)