C Programming

PAL stands for Physics Abstraction Layer.

Physics engine is a programming library that can model most of the essential factors (e.g. gravity, collision) of the physical world.

With the help of physics engines, we can enhance the reality of computer games or make an accurate emulation of physics experiment.

There are many different physics engine with various programming interfaces, and this leads to the demands of an abstraction programming layer, which can hide engine specific details and expose a common layer for programmers.
(more…)

Few GDB Commands – Debug Core, Disassemble, Load Shared Library

by Lakshmanan Ganapathy on March 11, 2014

GDB is an essential tool for programmers to debug their code.

This article explains how you can use gdb to debug a program with the core file, how to display assembly language instructions of your program, and how to load shared library programs for debugging.
(more…)

GDB Breakpoints and Watchpoints using awatch rwatch Examples

by Lakshmanan Ganapathy on February 10, 2014

In this tutorial we’ll cover couple of advanced GDB functions including conditional breakpoints, and watchpoints.

We’ve also used a simple C program as an example to explain these GDB debugger concepts.
(more…)

How to Use GDB Backtrace to Debug Strack Frame using C Example Code

by Lakshmanan Ganapathy on January 9, 2014

GDB is an essential tool for programmers to debug their code.

Breakpoints are the way to tell GDB to stop or pause the program execution at certain line, or function, or address. Once the program is stopped you can examine and change the variable values, continue the program execution from that breakpoint, etc.

Similar to breakpoints, backtrace is also helpful during debugging process to view and navigate the stack frame as explained in this tutorial
(more…)

Gdb is an essential tool to debug C programs.

Breakpoints are the way to tell GDB to stop or pause the program execution at certain line, or function, or address. Once the program is stopped you can examine and change the variable values, continue the program execution from that breakpoint, etc.
(more…)

Top 10 Mistakes Not to Make in a Programming Interview

by Himanshu Arora on November 4, 2013

If you are a programmer, you already know that when you apply for a programming job, the interview process is little different than any other technical job interviews.

In this article we will discuss 10 mistakes that you should avoid in a programming interview.
(more…)

C Recursion Fundamentals Explained with Examples

by Himanshu Arora on September 18, 2013

In C programming language, when a function calls itself over and over again, that function is known as recursive function.

The process of function calling itself repeatedly is known as recursion.

In this tutorial, we will understand the concept of recursion using practical examples.
(more…)

Structures, Unions and Bit fields are some of the important aspects of C programming language.

While structures are widely used, unions and bit fields are comparatively less used but that does not undermine their importance.

In this tutorial we will explain the concept of Structures, Unions and Bit fields in C language using examples.
(more…)