Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

A Quick Comparison of Programming Languages [6/10]

6. Argument Passing

For this comparison, we will examine another important distinction among popular programming languages: argument passing convention.

The languages C and C++ use call-by-value.

The languages Java, C#, Javascript, PHP and Python use a mixed convention. Primitive types are passed by value, while other types are passed by object-sharing.

ZedLX always uses call-by-value, therefore it is more similar to C and C++. Call-by-value is more beginner-friendly than object-sharing.
[Run the program by clicking the 'Run' button]

In C and C++ the situation is actually a bit more complicated, but let's not get into too many details.

Comparison of Popular Programming Languages by Argument Passing

Loading...