question

Sergio-9977 avatar image
0 Votes"
Sergio-9977 asked Sergio-9977 edited

Is C # an interpreted language?

C # is an interpreted language, therefore slower than C or C ++.
Why use C Sharp?

dotnet-csharp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Until you find a C# interpreter, it is not an interpreted language.

0 Votes 0 ·
SimpleSamples avatar image
0 Votes"
SimpleSamples answered SimpleSamples edited

In the context of computer languages, there is no official (or standard) definition of compile, translate and interpret.

Like Java, C# provides binary portability. See Slashdot | Interviews | C++ Answers From Bjarne Stroustrup (I assume you know who Bjarne Stroustrup is). In that he says:

The technical hardest problem is probably the lack of a C++ binary interface (ABI).

C and C++ do not have a binary interface, therefore they do not provide binary portability.

As has been said, C# is compiled into IL (providing binary portability) then during execution the IL is compiled into machine code. Since it becomes machine language during execution, it is usually as efficient as C++.

Note that C++ is not used for websites, I assume due to the security risk of the machine language.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Castorix31 avatar image
1 Vote"
Castorix31 answered

No, it is compiled to IL :
What is "managed code"?
Is C# interpreted?


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sergio-9977 avatar image
0 Votes"
Sergio-9977 answered Sergio-9977 edited

Thank you SimpleSamples
Your answer is satisfactory

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

karenpayneoregon avatar image
0 Votes"
karenpayneoregon answered karenpayneoregon edited

Why is C#? Well it depends on what type of application you are writing, for instance, writing a data centric application C# would be the way to go while writing drivers one would be better using C++. Even when writing interactive code Read–Eval–Print Loop (REPL) C# is compiled as per the example below via VS2019, C# Interactive.

Gif is set to run once to see again hit browser refresh.
125967-interactive1.gif



interactive1.gif (567.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DuaneArnold-0443 avatar image
0 Votes"
DuaneArnold-0443 answered DuaneArnold-0443 commented

C# is a compiled language. C# is a managed code language, which makes it slower than an unmangaed language like C or C++. However, C++.NET is a managed code language.

C# is an ECMA standard, which is not owned or controlled by Microsoft. Microsoft is just one company the the ECMA committee that controls C#.

A interpretive language would be something like JavaScript.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

There is no such thing as C++.Net. I think you are probably referring to C++/CLI.

0 Votes 0 ·

the list ...

https://www.geeksforgeeks.org/introduction-to-net-framework/

C#.NET
VB.NET
C++.NET
J#.NET
F#.NET
JSCRIPT.NET
WINDOWS POWERSHELL
IRON RUBY
IRON PYTHON
C OMEGA
ASML(Abstract State Machine Language)

0 Votes 0 ·

Show me current Microsoft documentation that refers to C++.NET as a language.

1 Vote 1 ·
Show more comments