Skip to content

Latest commit

 

History

History
21 lines (20 loc) · 394 Bytes

port_to_turboC.md

File metadata and controls

21 lines (20 loc) · 394 Bytes

Porting the progams to Turbo C/C++

To run the programs in TurboC/C++, replace

  • int main() with void main()
  • return 0; with getch();

Example:

#include<stdio.h>
int main(){
     printf("Hello World!! Happy Coding!!");
     return 0;
}

Edited to:

#include<stdio.h>
void main(){
     printf("Hello World!! Happy Coding!!");
     getch();
}