Connect C++ to MS Access

How to connect C++ to MS Access?

Questions by vsjprasath

Showing Answers 1 - 1 of 1 Answers

Inline functions: in exectution of normal  functions compiler overhead occurs by jumping to and fro from stack to avoid this inline functions are used it executes the given functions directly without moving it to stack

Macros:macros are the functions with only few lines .

#define SquareOf(x) x*x

It defines a kind of function which, used in an actual piece of code, looks exactly like any other function call:

double yout,xin=3;
yout = SquareOf(xin);

As we shall see in a moment, the problem is that SquareOf only pretends to be a function call, while it is really something completely different.

The formal syntax of a macro is:

#define name(dummy1[,dummy2][,...]) tokenstring

The symbols dummy1, dummy2, ... are called dummy arguments (as usual, square brackets indicate optional items). There are a few additional rules such as that the macro can extend over several lines, provided one uses a backslash to indicate line continuation:

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions