Undefined Behavior in C and C++

I believe you have read the statement “Undefined Behaviour” or “UB” in many programming books and blogs. Many new programmers and newbies are not able to understand the meaning of this statement. If you are one of them then this blog post is for you because, in this blog post, you will learn the meaning […]

Undefined Behavior in C and C++ Read More »

Binary Search

In this tutorial, you will learn how binary search works. Also, you will learn how to write the program using the binary search algorithm. In this blog post, you will find working examples of Binary Search in C, and C++. Before implementing the code let’s first understand the binary search algorithm. Binary search is a

Binary Search Read More »

Difference Between C and C++

In this blog post, you will learn the difference between C and C++ programming languages. C and C++ are widely used oldest programming languages and are mainly used in embedded system applications. This article will not only explain the difference between C and C++ but also cover some other topics. Let’s see some topics which

Difference Between C and C++ Read More »

memcpy_s in C

In this blog post, you will learn about the C memcpy_s() function with the help of programming examples. I will also discuss some important points related to the memcpy_s in C. Similar to the memcpy function, the memcpy_s function also copies n characters from the source object src to the destination object dest. Now I belive

memcpy_s in C Read More »

strndup in C

In this blog post, you will learn about the strndup in C with the help of programming examples.   strndup() in C: The strndup function creates a copy of the string pointed to by src. The copy of bytes from src to allocated space is up to the null character or given size, whichever comes

strndup in C Read More »

Rvalue reference declarator: &&

In this blog post, you will learn the rvalue reference and its uses in C++ programming with the help of example code. Before starting the article, I believe that you are already familiar with lvalue, rvalue, and references in C++ because these are the primary prerequisites to understanding this topic. If you are not aware

Rvalue reference declarator: && Read More »