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.
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.
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.
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.
Buffer overflow attacks have been there for a long time. It still exists today partly because of programmers carelessness while writing a code. The reason I said ‘partly’ because sometimes a well written code can be exploited with buffer overflow attacks, as it also depends upon the dedication and intelligence level of the attacker.
The least we can do is to avoid writing bad code that gives a chance to even script kiddies to attack your program and exploit it.
Many C and C++ programming beginners tend to confuse between the concept of macros and Inline functions.
Often the difference between the two is also asked in C interviews.
In this tutorial we intend to cover the basics of these two concepts along with working code samples.
Binary tree is the data structure to maintain data into memory of program. There exists many data structures, but they are chosen for usage on the basis of time consumed in insert/search/delete operations performed on data structures.
Stack smashing is a fancy term used for stack buffer overflows. It refers to attacks that exploit bugs in code enabling buffer overflows. Earlier it was solely the responsibility of programmers/developers to make sure that there is no possibility of a buffer overflow in their code but with time compilers like gcc have got flags to make sure that buffer overflow problems are not exploited by crackers to damage a system or a program.