I see the error collect2: error: ld returned 1 exit status very often. For example, when I was executing the following snippet of code I got the following:-
void main() { 
    char i; 
      printf("ENTER i"); 
      scanf("%c",&i); 
      clrscr(); 
  
      switch(i) { 
          default: 
              printf("\nHi..\n"); 
              break; 
          case 1: 
            printf("\n\na"); 
            break; 
          case 2: 
            printf("\nb\n"); 
            break; 
          case 3: 
              printf("\nc"); 
              break; 
      } 
}
 
Following which, I got this:
main.c:(.text+0x33): undefined reference to `clrscr' 
collect2: error: ld returned 1 exit status
Could anyone help me understand what it means?