Md Sarfaraj

Md Sarfaraj

  • 146
  • 13.1k
  • 1m

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)