2

I was going through post tagged as C++ and I came across this post. It is tagged as C++ but it only includes C code. Should I change the tag or should I ask for the tag to be changed?

1
  • I'd say no to both, leave it as it is. Would that code not work in C++? The user probably tagged it with the language they're working in based on the compiler they're using -- just because they're not using the ++ features in this example of their code doesn't mean their question is incorrect in saying what language they're working in.
    – TZHX
    Mar 4, 2015 at 14:07

1 Answer 1

4

I would just leave a comment that their code is C, and ask if they meant to tag it C++ or not. The OP might be compiling with a C++ compiler, or (in this specific case) submitting their code to an online judge that uses C++. It might be a relevant detail, so it's better to not just assume from the code which one is being used.

1
  • Thank you. I'm still new to the site so I want to make sure I am following proper procedure. Mar 4, 2015 at 14:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .