The time complexity of function given below with constants is

Void fun(int a[], int n)

{

                      int i;

                      printf(“%d”, n);

                      for(i=0; i

                      {

                                      printf(“%d”,a[i]);

                      }

                      printf(“n”);

}

1
O(1)
2
O(n)
3
O(logn)
4
O(n2)

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation