Associativity of operators

0 votes

The following is taken from the C# specification:

All binary operators, with the exception of the assignment and null coalescing operators, are left-associative, meaning that operations are conducted from left to right.

The assignment, null coalescing, and conditional operators (?:) are all right-associative, which means that actions are conducted from right to left.

That's apparent enough, but how are operators like default, delegate, and stackalloc classified? What is their degree of associativity?

The same can be argued about [], (), for example; are they unary or binary, or technically neither, because the conventional unary operator is op x, but the binary operator is x op y?

Jun 11, 2022 in C# by pranav
• 2,590 points
641 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In C#

0 votes
1 answer

What are the differences between C, C# and C++ in terms of real-world applications?

C is a bare-bones, straightforward, and clean ...READ MORE

answered May 30, 2022 in C# by rajiv
• 1,620 points
728 views
0 votes
1 answer

C# - Can someone please show me a very simple example of Interfaces

Take this as example interface IFlyable { ...READ MORE

answered May 30, 2022 in C# by rajiv
• 1,620 points
462 views
0 votes
1 answer

array of string with unknown size

Is there a specific reason why an ...READ MORE

answered Jun 7, 2022 in C# by pranav
• 2,590 points
1,462 views
0 votes
1 answer

Which version of C# am I using

From developer cmd, type this csc -langversion:? This will ...READ MORE

answered Jun 7, 2022 in C# by pranav
• 2,590 points
506 views
0 votes
1 answer

Examples of dynamic polymorphism in c#

Check the example of polymorphism below. We ...READ MORE

answered Jun 7, 2022 in C# by pranav
• 2,590 points
873 views
0 votes
1 answer

Origin of the C# language name

The '#' is actually a musical sharp ...READ MORE

answered Jun 7, 2022 in C# by pranav
• 2,590 points
475 views
0 votes
3 answers

Trying to upload files using Selenium(C#)

You can try using Javascript Executor to ...READ MORE

answered Aug 23, 2019 in Selenium by Abha
• 28,140 points
5,757 views
0 votes
1 answer

Deploy my Windows 10 IOT core application locally!

Of course, you, can! That is, in ...READ MORE

answered Jul 17, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,134 views
+6 votes
16 answers

How do backend of these really cool games work?

Most of the games these days don't ...READ MORE

answered Jul 19, 2018 in Career Counselling by Kalgi
• 52,350 points
11,401 views
0 votes
1 answer

SQLite.Net not being able to create text file in Win IoT Library!

That exception comes when access limited to ...READ MORE

answered Aug 3, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,042 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP