Recent Posts

How to Test your Code Online

0

How to Test your Code Online

We did many post on programming and the tools and things that is needed to do programming or to code. But in this i got something interesting and might be new for you. Yes you can test or run your code online in a simple way without headache of heavy lode editor or something. You can run the C, C++ and PHP and many other code online, yes in a browser. Here proceed to know how to run it.
First of go to CodePad.org.
Here you see a editor window which has a option on left panel to select the appropriate programming language.
codepad window
What you need to do is Just write your code and select the Language on which you wrote the code and hit Submit like as what i did below.
I wrote a simple code in C language with some printf  Commands.
After typing code once you hit Submit then it will compile and execute it on their own server and Produce a output. But obvious the Output will be on the Web page not like in Dos mode of Turbo C.
Here is a output of my code and note that it will give you a URL by which you can share the Code and output to Social Media or to any friend via mail.
So here i got a output. Now here is one note that it will only execute some of the Functions not a whole language as their is issue of their server security arrives.
This is for a Code in ‘C ‘, lets take a example of PHP and lets run one simple script over here.  Just open the editor and paste the following code and Hit submit.
<?
print “This is a PHP code”;
?>
Don’t forget to select the Language as “PHP”. :P
Hope you like this post and have a fun with it and play it. Good luck and Happy Programming.!

0 comments: