Quantcast
Channel: Active questions tagged questions - Meta Stack Overflow
Viewing all articles
Browse latest Browse all 621

Can I ask multiple programming languages in one Stack Overflow question? [duplicate]

$
0
0

Let's say I have a project from a client that requires using multiple languages for a few of logic. For example:

How can I build the addition function in C++, Java, JavaScript, and Python?

Answer Format:

  1. C++

    #include <iostream>int add(int a, int b) {    // Implementation}
  2. Java

    public class NewClass {    public static int add(int a, int b) {        // implementation    }}
  3. JavaScript

    function add(a, b) {    // Implementation}
  4. Python

    def add(a, b):    # Implementation

Is it illegal to ask with this style? What is the best practice?


Viewing all articles
Browse latest Browse all 621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>