Getting started with GDB

In this article, I am going to help you set up the debugger and use that in your machine. This is the second article in this series. In the first article, I have written about approaches to debug your c/c++ application. GDB For You The debugger I use and will write...

Debugging Code in C/C++

What to do when your C/C++ code has problems? How to debug it? Well, this is exactly the problem I am trying to help you with. Sometimes, (read always) debugging the code can be quite frustrating. There are times you don’t know exactly what is causing the...

Control Flow Statements – Part 2

Hello everyone, in this article, I am writing about “Switch case in C” which is another type of control flow statement. If you come here looking for if – else, then go to this article. Switch Case in C The syntax of “Switch case” in C is- switch (expression) {...

If-Else in C

Control flow statement in C (If – Else) – Part 1 This article is all about the control flow statement in C (If – else). It means if you want to control the certain execution of the program according to the condition described by you. For example, you want...

Functions in C/C++

What are the functions in C and why should we use them? Suppose you have to write a code in which you have to find out the sum and difference of two numbers three times. Well, it’s very simple to do that but now you have to write the same code three times. To make...

Loops in C

What are the loops in Programming and what are they use for? Suppose you have given a task to print your name 5 times. Simple right? You can just print your name 5 times in the main function. But in programming, you don’t want to write the same code for doing the same...