Md Sarfaraj

Md Sarfaraj

  • 595
  • 3.6k
  • 475.6k

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)