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 »

strdup in C

In this blog post, you will learn about the strdup in C with the help of programming examples.   strdup() in C: The strdup function creates a copy of the string pointed to by src. The space for the new string is allocated as if by a call to malloc. It returns a pointer to

strdup in C Read More »

strerror in C

In this blog post, you will learn what is the strerror in C and how to use the strerror() function in C with the help of programming examples.   What is strerror() in C? The strerror function maps errnum to an error-message string. Typically, the values for errnum come from errno, but strerror can map

strerror in C Read More »

strcoll in C

In this blog post, you will learn what is the strcoll() and how to use the strcoll() function in C to compare two strings with the help of programming examples.   What is strcoll() in C? The strcoll() function is declared in <string.h> header file. It compares the string pointed to by s1 to the

strcoll in C Read More »

ASCII Table

In this blog post, we have implemented an ASCII table (ASCII chart) that contains characters with their ASCII value in decimal, hex, octal and binary format.  Before implementing the ASCII table let’s first understand what ASCII code is. What is ASCII Code? ASCII is a character encoding standard for electronic communication. They represent text in

ASCII Table Read More »