Introducing runnable c/c++ code snippets

We are excited to introduce runnable c/c++ code snippets. Now you can embed code snippets which can be executed from your website/blog. Here is live example of embded runnable code snippet.

 

Below are steps to embed runnable code snippets to your own website.

  1. Goto onlinegdb.com
  2. Write and test your code
  3. Click “Share” button
  4. Copy “Embed Code” link, which would look like code below.
    <script src="//onlinegdb.com/embed/js/B1X6-oL-W"></script>
  5. Paste it in your article/page of your website where you want to display runnable code.Thats it. Now your readers can run your code snippets from your website.