C

A collection of 19 Articles

Which C++ compiler should I use?

Select carefully After understanding the reasons for use C++ you need to know that there are a LOT of different C++ compilers, and although the purpose of all is to create an executable, each one come here with different flavor, utilities, keywords in some cases, and so. In this post,

Getting started with C++

Why do you need to learn C++? C++ is generally known as a old language, and for that reason there is a small set of programmers that underestimate that beautiful language. This article has the opposite proof, and the purpose of show you how powerful, fast, optimized, and especially fresh

What is Dangling Pointer with Cause and How to avoid it?

Dangling pointers in computer programming are pointers that pointing to a memory location that has been deleted (or freed). Dangling pointers arise during object destruction, when an object that has an incoming reference is deleted or deallocated, without modifying the value of the pointer, so that the pointer still points

Big-O Notation Explained with Examples

Asymptotic notation is a set of languages which allow us to express the performance of our algorithms in relation to their input. Big O notation is used in Computer Science to describe the performance or complexity of an algorithm. Big O specifically describes the worst-case scenario, and can be used

Why does the indexing of Array start with Zero in C?

Martin Richards, creator of the BCPL language (a precursor of C), designed arrays initiating at 0 as the natural position to start accessing the array contents in the language, since the value of a pointer p used as an address accesses the position p+0 in memory. The name of

Memory Layout / Representation of C Program

Memory layout / representation of C program is organized in following fashion - Text or Code segment Initialized data segment Uninitialized data segment Stack Heap 1. Text or Code Segment Text segment contains machine code of the compiled program. Usually, the text segment is shareable so that only a single copy

What is Digraphs, Trigraphs and Tokens? - C/C++ Programming Language

In computer programming, digraphs and trigraphs are sequences of two and three characters, respectively, that appear in source code and, according to a programming language specification, should be treated as if they were single characters. Why Digraphs and Trigraphs exist? Various reasons exist for using digraphs and trigraphs: keyboards may

Storage Classes in C Programming Language

Storage class specifiers are the keywords which can appear next to the top-level type of a declaration. The use of these keywords affects the storage duration and linkage of the declared object, depending on whether it is declared at file scope or at block scope: 1. auto This storage class
Load more