Md Sarfaraj

Md Sarfaraj

  • 152
  • 11.8k
  • 951.8k

What is the BigO of this program?

Jan 21 2022 7:36 AM

What is the BigO of this program?

#include <stdio.h>

int  main() {

  char data[] = {'a','b','c','d','e','f','g','h'};

  for(int i = 0; i < sizeof(data); i++) {
    if(data[i] == 'e') {
      printf("e is found");
      break;
    }
  }

}

 


Answers (1)