Tutorialspoint.dev
Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C C Basics cpp-macros

Interesting Facts about Macros and Preprocessors in C

  In a C program, all lines that start with # are processed by preprocessor which is a special program invoked by the compiler. In a very basic term, preprocessor takes a C program and pro...
C C-Macro & Preprocessor c-puzzle

Variable length arguments for Macros

Like functions, we can also pass variable length arguments to macros. For this we will use the following preprocessor identifiers. To support variable length argument...
C AdvanceC C-Macro & Preprocessor

Branch prediction macros in GCC

One of the most used optimization techniques in the Linux kernel is ” __builtin_expect”. When working with conditional code (if-else statements), we oft...
C C-Macro & Preprocessor C

Multiline macros in C

In this article, we will discuss how to write a multi-line macro. We can write multi-line macro same like function, but each statement ends with “”. Let...
C Technical Scripter C

Hygienic Macros : An Introduction

We are all familiar with the working of macros in languages like C. There are certain situations in which macro expansions can lead to undesirable results because of ...
C C++ CPP-Functions

Macros vs Functions

Macros are pre-processed which means that all the macros would be processed before your program compiles. However, functions are not preprocessed but compiled. See th...
C C++ Competitive Programming

Data Type Ranges and their macros in C++

Most of the times, in competitive programming, there is a need to assign the variable, the maximum or minimum value that data type can hold, but remembering such a la...

Subscribe to Our Newsletter