How to check your Programming codes online (Online Compiler)

If you have a piece of code that you quickly want to check for any compilation error, then an online compiler can come in handy. In this post, I will share a list of Online Compliers and debugger tools which can help check your programming codes online.

GDB Online Code Compiler and Debugger

How to check your codes online (Online Compiler)

Here is the list of some of the best Online Complier to check your codes online.

  1. GDB Online
  2. Codepad
  3. Codechef
  4. Repl.it

There are tons of online tools like this available, so if you have any suggestion, let us know.

Related: Find the difference between similar text file.

1] GDB Online

It offers a modern interface with syntax highlighting and prediction based features. If you want to write code or test it, copy-paste it here, and run it. GDB Online supports C, C++, Python, PHP, Ruby, C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS programming languages.

It restricts the size limit of source code, stdin, stdout, stderr to 64 KB. It also supports third-party libraries for C\C++ which includes ncurses, lapack and boost.

Try out GDB Online

2] Codepad

Codepad is an online service that allows you to check the codes written by you, without installing any compiler. You need to paste your code as shown below, choose the programming language via the radio button, and soon you will come across the output or the errors in the code.

The service is quite simple to use, can be a handy tool at times when you want to run the code on a machine that doesn’t have the required compiler. Codes written in the following languages can be tested, just with a mouse click.

  • C
  • C++
  • D
  • Haskell
  • OCaml
  • Perl
  • Python
  • Ruby
  • Scheme
  • Tcl.

Paste the code you have in the editor and hit the run button. If you do not want your code to be listed in public, make sure you have checked the private checkbox.

programming codes online compilers

Once the code is compiled and executed, you get three things:

  • A url where anybody can see the output. Useful if you want to share it with others.
  • Correctly formatted and colour highlighter code
  • Output with Error details and mention of the line number.
  • The Editor again if you want to change language and re-run the code.

CodePad Output

 

You can also have a look at the codes people are trying on Codepad, with the help of a link on the top-right position of the page.

More at Codepad

3] Codechef

It is similar to the website mentioned above but what makes it stand out is an option to run multiple codes. It offers TAB support where each tab can have different programming language support.

Codechef Online IDE

Check out CodeChef

4] Repl.it

If you are looking for a terminal experience along with the online compiler, then this is it. You can create projects on it, separate module files support syntax highltiing, debugging, auto-complete and more.

You can also share the code with anyone to get help. More at Repl.it

Which of these online compilers did you like the most? For me, its the GDB Online which offers an excellent interface.

19 COMMENTS

  1. its nice for every to whom who want to work online without installing any program thanks for providing such neccesity function for all users

  2. // my first program in C++

    #include
    using namespace std;

    int main ()
    {
    cout << “Hello World!”;
    return 0;
    }

  3. @ Anuj, I don’t think user input is supported, as, after your comment I tried a code in C, but it didn’t support user input, moreover Codepad is just to check your codes, don’t consider it as a replacement of any compiler.

  4. #include

    void main(){
    int x = 2147483647;

    if(x=5)
    cout<<“x is “<<x<<“.”<<endl;

    if(x=-3)
    cout<<“x is “<<x<<“.”<<endl;

    if(x=0)
    cout<<“x is “<<x<<“.”<<endl;

    if(true)
    cout<<“This is true.”<<endl;

    if(false)
    cout<<“THis is false.”<<endl;

    if(4)
    cout<<“Huh?”<<endl;

    if(97)
    cout<<“Again?”<<endl;

    if(-107)
    cout<<“What now?”<<endl;

    if(-2)
    cout<<“Cosa ba???”<<endl;

    if(0)
    cout<<“Nah!”<<endl;

    }

  5. hey is my code correct to print the first ten numbers of fibonacci series
    #include
    #include
    void main()
    {
    int a,b,fib,i;
    a=1;
    b=1;
    printf(“%d”,a);
    printf(“%d”,b);
    for(i=3;i<=10;i++)
    {fib=a+b;
    printf(“%d”,fib);
    a=b+fib;
    printf(“%d”,a);
    b=a+fib;
    printf(“%d”,b);
    }
    getch();
    }

  6. #include

    int main() //Main Function
    {
    int i=0;

    for(;i<26;i++)
    {
    printf(” %c “,i+’a’); //Loop For Printing a-z
    }

    return 0;
    }

  7. #include
    #include
    #include
    #include
    #include

    int main()
    {

    double va,vl[6],vu[6],ra,rl[6],ru[6],rta,rtl[6],rtu[6];
    double mv[6],mr[6],mrt[6],Gl[6],Gu[6],G2l[6],G2u[6],G3l[6],G3u[6];
    double xl,xu,u,v,z;
    double f[6],fl[6],fu[6],acc;
    int i;

    Printf(“Enter the Accuracy “);
    scanf(“%lf”,&acc);
    va = (5.0025-4.9975)/6.0;

    for(i=0;i<6;i++)
    {
    vl[i]=4.9975+ va*i;
    vu[i]=4.995+i*va+va;
    }

    printf(“The Vin box values are:”);

    for(i=0;i<6;i++)
    printf(“%f %f\t”,vl[i],vu[i]);

    ra= (1100-900)/6;

    for (i=0;i<6;i++)
    {
    rl[i]=900+i*ra;
    ru[i]=900+i*ra+ra;
    }

    for(i=0;i<6;i++)
    printf(“R valuesin boxes%f %f\t”, rl[i],ru[i]);

    rta= (1190.55-1179.45)/6.0;

    for(i=0;i<6;i++)
    {
    rtl[i]=1179.45+i*rta;
    rtu[i]=1179.45+i*rta+rta;
    }

    for(i=0;i<6;i++)
    printf(“Rt values in boxes%f %f\t”,rtl[i],rtu[i]);

    for(i=0;i<6;i++)
    {
    mv[i]=(vl[i]+vu[i])/2;
    mr[i]=(rl[i]+ru[i])/2;
    mrt[i]=(rtl[i]+rtu[i])/2;
    }

    for(i=0;i 0)
    u= gl[i];
    else
    u=gu[i];

    if(G2l>0)
    v=g2l[i];
    else
    v=g2u[i];

    if(G3l>0)
    z=g3l[i];
    else
    z=g3u[i];

    f[i]=u[ (1/(1+v) – (1/(1+z)));

    fl[i]= xl+f[i];
    fu[i]=xu+f[i];

    if(fl[i]<acc)
    i++;
    else
    {
    print(“Limit values are %f %f”,&fl[i],&fu[i]);
    exit(0);
    }
    }

    }

  8. include
    bool f();
    int main(void){
    bool life,death;
    life=false;
    if(life)
    cout<<"death is not!";
    else
    cout<<"he is death!";
    if(f())
    cout<<"After fonction f,"<<endl<<"death is true);
    else
    cout<<"After fonction f,"<<endl<<"death is false!);
    return 0;
    }
    bool f(){
    short n;
    cout<<"wath?"<<endl<>n;
    if(n>=1)
    return true;
    else
    return false;
    }

    // Have Fun =)

  9. @Manav – I have found your art. looking for “online compiler”s but CodePad is more like “Online Debugger”. There is also similar site ideone.com, which provides more languages (inluding bash) and input data.

  10. I am trying to make a console application , but it is not working correctly plz help me.
    Question is : 1. Declare an integer type array.
    2. Take input from user in the array i.e. 10 integer values.
    3. Pass this array to a function which will calculate and display the number of times an element is repeated.
    4. If the array contains elements with repetition, the program should only display the repeated elements and their count.
    5. If there is no repetition in the array, the program should simply display the message “There is no repetition in the array”.
    Can you please give me the code for the above program.

  11. Problem Statement: Recognizing and Splitting the string.
    You are required to write a program that takes a phone number as input from the user and stores it as a string value. The phone number will consist of country code, city code and actual 7-digit number separated by “-”. User can enter the phone number in any order. Your program should be able to recognize the country code, city code and 7-digit number and display it in the following format.
    Country code – City code – 7-digit number

    Detailed Description:

    1. Take phone number as input from the user.
    2. The number should be stored as a string value.
    3. User can enter the phone number in any order for example 0092-333-1234567 or 333-0092-1234567 or 1234567-333-0092 etc.
    4. Program should be able to recognize country code, city code and 7-digit number from the string and display it in the right sequence.

  12. #include
    #define M 50

    #define F(x,y)=pow(x,y)
    void main()
    {

    printf(“M=%d”,M);
    int c;
    c=F(3,4);
    printf (“c=%d”,c);

    }

  13. im using window 7 and turboc is nt working due to 64 bit …so plzzz subject the alternative software or downloading site for turbo c for 64 bit

LEAVE A REPLY

Please enter your comment!
Please enter your name here