Mobile Phones - Bean Bag Toss Game - MPAA - Fast Loans - Free Advertising

PDA

View Full Version : Difference bitween # and ##


rontdu
Feb 7th 2008, 12:56 am
Anybody can tell me the difference between single # and double ## in c or c++ programming. I know the name of the ## is pasting preprocessor operator. But what's the use of this operator?

daman371
Feb 8th 2008, 12:27 pm
# is used for preprocessor directives but is also used in macros with ##. see http://msdn2.microsoft.com/en-us/library/09dwwt6y(vs.71).aspx.