Home ¦ Archives > Category: Programming Languages

Why bother to have type definitions if we already have macros?

Macro Definitions

Macro definitions are recognized during preprocessing phase, and macro names are naively replaced by the preprocessor.

Consider following example:

#define Int_Ptr (int *)

Int_Ptr a, b, c;

In the above case, only a will be defined as a pointer pointed to and Integer, whereas b and c are two ...


Difference Between exec() And spawn() In Node.js

This thread might be outdated since I was using Node.js 0.10.26.

Currently I am making an application that does roll call in a classroom for teachers who don't want to waste their time on a roll call. We need to invoke some Matlab-implemented algorithm using OpenCV ...

© Teng Long. Built using Pelican. Theme by Giulio Fidente on github.