PDA

View Full Version : What is “##” operator in C?



Shivangi Panwar
05-16-2016, 03:09 AM
What is “##” operator in C?

penrix
05-16-2016, 03:16 AM
## is a pre-processor macro in C. It is used to concatenate 2 tokens into one token.

tanhdavid
05-16-2016, 06:02 AM
An operator is a symbol that tells the compiler to perform specific mathematical or logical functions. C language is rich in built-in operators and provides the following types of operators −

Arithmetic Operators
Relational Operators
Logical Operators
Bitwise Operators
Assignment Operators
Misc Operators

C# provides many operators, which are symbols that specify which operations (math, indexing, function call, etc.) to perform in an expression. You can overload many operators to change their meaning when applied to a user-defined type.
Operations on integral types (such as ==, !=, <, >, &, |) are generally allowed on enumeration (enum) types.
The sections lists the C# operators starting with the highest precedence to the lowest. The operators within each section share the same precedence level.

web designer57
05-23-2016, 04:18 AM
A macro is a fragment of code which has been given a name. Whenever the name is used, it is replaced by the contents of the macro. There are two kinds of macros. They differ mostly in what they look like when they are used. Object-like macros resemble data objects when used, function-like macros resemble function calls.

webdesign123
05-24-2016, 04:30 AM
An operator is a symbol that tells the compiler to perform specific mathematical or logical functions. C language is rich in built-in operators and provides the following types of operators −

1.Arithmetic Operators
2.Relational Operators
3.Logical Operators
4.Bitwise Operators
5.Assignment Operators
6.Misc Operators
We will, in this chapter, look into the way each operator works.