C Tutorial
This Pointer in C++
In this article, we will understand more about the this pointer as well as understand more about it’s use case. The This Pointer This is the pointer whose type is the same as the class type. Okay, but where does it points? Yeah, it points to the current instance of the class(object). Let’s prove this …
Binary and Hexadecimal Numbers
So far, we are accustomed to the decimal number system. In this article, we are going to explore more types of number systems which is – Binary and Hexadecimal Number system, and why it is important in computers. Number system As you may already know that a decimal number system has 10 digits(0 to 9)and …
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 here about is GDB. …
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 problem and that alone can make you question …
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) { case 1: break; case 2: …
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 to check if the number entered …
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 …