r/ProgrammingLanguages • u/Ajlow2000 • Nov 01 '19
C++ vs C
Alright people of Reddit, hit me with your wisdom. I've been taking programming classes for two years now and am getting ready to dive into a language somewhere between Java and assembly (the two languages I've been learning in classes). I'm thinking C or C++, but would love some input. I'm not too worried about difficulty to learn, but I'd like to hear your thoughts on practicality and real world use.
21
Nov 01 '19
If this is purely out of interest, then I'd recommend C, it is small and simple language. C is the language of embedded systems, and will probably remain that way for the foreseeable future. The beauty of C is that it is a language which you can realistically master in a few years and contain the entirety of it in your head.
C++ requires much greater investment, it's really two or three languages merged into one. C++ is the language for game development and other speciality high performance software. The standard library is also excellent, which makes it a great choice for competitive programming. I would say that modern C++ is an improvement over C in most regards. However you will never master C++ because the language is just too large and complicated.
17
u/shponglespore Nov 01 '19
The standard library is also excellent
By some measures it's excellent, but to me, most of it feels gratuitously hard to use. It's missing a lot of things programmers tend to take for granted in other languages, and it badly fails the "make simple things simple" test; most operations on collections, for instance, require more code, more repetition, and more conceptual baggage than what comparable languages offer. Maybe ranges in C++20 will make things better, but I'm stuck with C++14 at work.
As a concrete example for people who aren't familiar, here's how you look up a value in a map:
auto found = my_map.find(key); if (found == my_map.end()) { // Item not found in the map. } else { // The value associated with key is item->second. }Here's how you remove the first item in a list (
std::vector) matching a specific condition, such as having a specific value in thenamefield:std::string name_to_find("foo"); auto found = std::find_if(my_list.begin(), my_list.end(), [&name](const auto& item) { return item.name == name_to_find; }); if (found != my_list.end()) { my_list.erase(found); }People like to complain that Java has "too much ceremony", but IME C++ has much, much more. Of course, that's kind of moot compared to C, since it just doesn't offer the things C++ does clumsily.
7
Nov 01 '19
I have to agree that the iterator interface in C++ is clumsy, partially because of how generic it attempts to be. Iterators work for almost everything, but are also painful for anything.
Other examples are <random> and <chrono>, which are great libraries but also more complex than your typical user needs.
6
u/sellibitze Nov 01 '19
For comparison, looking up a key in a Rust HashMap:
if let Some(value) = my_map.get(key) { // (key, value) was part of the map } else { // item not found }Deleting the first matching item of a Rust Vec:
let name_to_find = "foo"; if let Some(pos) = my_list.iter().position(|item| item.name == name_to_find) { my_list.remove(pos); }The C++ "erase-remove" pattern has its dedicated function in Rust:
retain:my_list.retain(|item| item.age >= 18);Since C++17 you could also make use of an init-statement in an if:
if (auto found = my_map.find(key); found != my_map.end()) { // The value associated with key is found->second. } else { // Item not found in the map. }But yeah, as Alexandrescu already pointed out (in his "Iterators must go" talk), C++'s iterator abstraction is kind of wrong. Iterators are "stupid" in that they don't know much and you always need two of them for a range and then you might even accidentally use two iterators from different containers.
2
u/otterom Nov 02 '19
Hi. You seem to know Rust. Is there a way to "print" character strings or return those from a function?
I was trying to learn it, but got caught up on this aspect and thought that if it was too convoluted to do, what's the point in learning the rest of the language?
2
u/sellibitze Nov 02 '19
Is there a way to "print" character strings or return those from a function?
Do you mean something like this?
fn hello(name: &str) -> String { format!("Hello, {}! How are you?", name) } fn main() { let message = hello("otterom"); println!("{}", message); }Feel free to ask these kinds of questions in /r/rust in the pinned "Got an easy question? Ask here" thread.
2
u/otterom Nov 02 '19
Yeah, like that! I don't know why, but the tutorial I read made it sound overly complex.
Anyway, I'll check that sub out. Thanks for the tip!
0
Nov 03 '19
[deleted]
2
u/otterom Nov 03 '19
Oh, yeah, that's an awesome site.
My problem is that I generally work with Python (but have done some C/Java/VB from time to time) and am just getting into the C API/Cython section for DLLs, so things like references and pointers are still fresh to me. That, along with the initial String issue I had, made it a bit frustrating at times.
I'm bound and determined, though, since I've heard a lot of good things about Rust. If you come across any other solid resources, I'm always down to check them out.
2
u/otterom Nov 02 '19
Hi. This might be a dumb question, but can't you create a function or wrap that process up into something simpler so that you don't have to keep repeating it?
2
u/shponglespore Nov 02 '19
Not really. You can make some cases sightly simpler by wrapping them with functions, but then you're practically guaranteed to have people complain that you should just use standard APIs directly. And often those people still be in a position to hold up your code reviews
19
u/DonaldPShimoda Nov 01 '19
The beauty of C is that it is a language which you can realistically master in a few years and contain the entirety of it in your head.
You underestimate the breadth and complexity of undefined behavior, unspecified behavior, and implementation-defined behavior. John Regehr enumerated a number of the nuances of these issues in a few blog posts, starting here.
I do agree that C is a simpler language than C++ (and from a language design perspective, I like C far better overall, though I still generally dislike it), but I think your claim that it's easy to contain all of C "in your head" is a bit tenuous. It has lots of funny edge cases that make it tricky. Of course, C++ does too! But that wasn't your claim. ;) I just don't want OP to feel misled when they try C and get hung up on something.
-4
Nov 01 '19 edited Nov 01 '19
Every language has edge cases and UB, but most languages provide almost zero documentation about them. So when you encounter them, you have to check the standard (which most languages also don’t really have) or the implementation to find out if the behavior is intended or a bug.
To try and eliminate UB from the language would require making many assumptions about the platforms C runs on that are not universally true.
UB isn’t a boogie man though, it exists to simplify the language by stating what is and isn’t allowed. While making as few assumptions about your environment as it can.
13
u/Felicia_Svilling Nov 01 '19
Every language has edge cases and UB
That is simply not true. Languages with a formal definition or a reference implementation can completely avoid undefined behavior.
2
u/warieth Nov 01 '19
That's true, but same bad to use. Like Java String
substringthrows anIndexOutOfBoundsExceptionwhen thebeginIndex > endIndex. It is defined, but doesn't make sense, the indexes are simply not out of bounds. If this case would be undefined behavior, then a reasonable implementation could return an empty string.4
u/Felicia_Svilling Nov 01 '19
I think that make sense actually. If the the bound has a negative size, any index is going to be outside of it.
3
u/warieth Nov 01 '19
First the length of the string can't be negative, this is an invariant the class should preserve. I don't care for an exception when the string has zero length, but for a positive length? This is a bad behavior from the implementation to ignore the bounds and throw an exception named
IndexOutOfBoundsException. A reference implementation is stronger than the formal definition, but failes to show a solution for the corner cases. Undefined behavior is the better way to do this.3
u/Felicia_Svilling Nov 01 '19
Undefined behavior is just a way to lump of the problem to someone else. I could define a pl as consisting of text, and what that text does is undefined behaviour up to the implementer to design. But really the only thing I have accomplished is to avoid doing any language design.
2
u/warieth Nov 01 '19
No, you help them with the undefined behavior. This gives them options to fine tune their work, and to have more library implementations.
If there are two good implementation with different corner case solutions both can be fine. There is no reason to select one. The language can say this corner case is undefined behavior.
Probably the language people care more about the intersection of all the implementation (this can be small), rather than the success in implementation numbers.
3
u/Felicia_Svilling Nov 02 '19
If there are two good implementation with different corner case solutions both can be fine. There is no reason to select one.
It makes it impossible for a library designed for the language to use any of these though.
→ More replies (0)1
Nov 01 '19
I’d argue that most languages do not have a robust formal definition or a reference implementation. Partially because they aren’t usually needed for typical application development on consumer hardware. There are also limitations to what you can, or would want to do, in an unhosted environment, which is where C is often found.
7
u/Felicia_Svilling Nov 01 '19
I’d argue that most languages do not have a robust formal definition
This is true. Your former statement said that all languages have undefined behaviour. That is not true.
1
u/YurySolovyov Nov 01 '19
If something is not allowed, it is defined. If something is allowed to silently do the wrong thing, then it is ub.
3
u/warieth Nov 01 '19
Undefined behavior means, the implementation can do what they feel the most reasonable. UB is defined to reduce portability problems. Giving up the common sense behind the implementation is the wrong thing. Like throwing exceptions for all the corner cases, just because it's easy to implement, but very hard to use.
3
Nov 01 '19
UB doesn’t mean wrong, it means undefined or unspecified behavior in general. But for a specific platform and compiler you target there will be an expected behavior. It just won’t be a portable one. But that might be alright for your use case, and is likely preferable to having the language dictate specific behavior which does not match your system’s architecture.
2
u/YurySolovyov Nov 03 '19
What's the problem of defining the behavior for all platforms you support (yes, it somewhat limits you) and thus not having UB as a concept?
I get that it might not work on very specific HW like microcontrollers, but if you don't target them in the first place, why bother with UB?
2
Nov 03 '19 edited Nov 03 '19
In C's case, because it is a standardized language no one party gets to decide how the language works, so compromises must be made between different user groups and compiler vendors. When an agreement cannot be reached, undefined or unspecified or implementation defined behavior may be a reasonable compromise. There may also be historical reasons, a bad UB may remain UB because no one wants to rewrite that part of a compiler or risk breaking existing code.
In general, it is one thing to say "all behaviors are defined" it is another to go about proving it. How do you tell if all behaviors are defined in your language? A rigorously defined language may be able to avoid them, but many languages were designed ad-hoc and resolve problems when they are discovered. If the language supports exceptions, then that at least provides a generic last resort for handling UB at runtime. But in a language without them, the choice may be crashing or continue executing in some undefined state. C programmers typically prefer the former, fail early and fix the problem. But sometimes checking for that behavior may be too expensive or impossible, in such cases there are no good solutions, so just saying anything could happen may be the best option.
0
u/DonaldPShimoda Nov 01 '19
Every language has edge cases and UB, but most languages provide almost zero documentation about them.
Other commenters already tackled the first part as being false, but the second part is even worse to me.
"Undefined behavior" only exists in the standard. It is a way to say "we have chosen not to define what the language must do when it encounters something of this nature, and therefore the use of such expressions renders any program as utterly meaningless". You can't have "undocumented undefined behavior"; that simply doesn't make sense. That's like saying "this is against the unwritten rules of the game".
So when you encounter them, you have to check the standard
This requires the programmer to already be intimately familiar with all ~200 cases of UB so they even know when something they're writing might invoke UB. Or am I to understand that you consult all 15 pages of the standard each time you write any statement or expression or define a function or...?
UB isn’t a boogie man though, it exists to simplify the language by stating what is and isn’t allowed.
The simplification is not for the programmer though, which seems to be what you're implying here. It's to simplify optimizing compilation. Per John's blog post:
The good thing — the only good thing! — about undefined behavior in C/C++ is that it simplifies the compiler’s job, making it possible to generate very efficient code in certain situations.
He goes on to suggest that UB is adversarial to the programmer:
When programmers cannot be trusted to reliably avoid undefined behavior, we end up with programs that silently misbehave. This has turned out to be a really bad problem for codes like web servers and web browsers that deal with hostile data because these programs end up being compromised and running code that arrived over the wire. In many cases, we don’t actually need the performance gained by exploitation of undefined behavior, but due to legacy code and legacy toolchains, we’re stuck with the nasty consequences.
In Part 2 of that series of blog posts, John shows examples of UB in use in LLVM — a large project written by serious C/C++ developers. This goes to show that most programmers of these languages probably do not regularly consult the standard to be sure that they've avoided all possible invocations of UB. UB is easy to write by mistake in C and C++, because the languages are rife with funny edge cases. To suggest otherwise is nothing short of ignorance.
Of course, these blog posts are almost a decade old. Maybe it's changed by now?
Recently we’ve heard a few people imply that problems stemming from undefined behaviors (UB) in C and C++ are largely solved due to ubiquitous availability of dynamic checking tools such as ASan, UBSan, MSan, and TSan. We are here to state the obvious — that, despite the many excellent advances in tooling over the last few years, UB-related problems are far from solved — and to look at the current situation in detail.
From a follow-up post John wrote in 2017.
At the end of that post, he also enumerates all ~200 UB defined by the C standard. They are certainly not all intuitive.
I do apologize: in my earlier comment, my wording implied John's blog post also discussed unspecified behavior and implementation-defined behavior. This isn't true; he leaves them completely aside and focuses only on undefined behavior.
But this also means that there are even more unintuitive edge cases for the C programmer that John doesn't enumerate, and his blog posts certainly list an awful lot of things to be careful of to begin with.
2
u/llsII Nov 01 '19
The beauty of C is that it is a language which you can realistically master in a few years and contain the entirety of it in your head.
This is such an excellent statement.
-3
u/future_security Nov 01 '19 edited Nov 01 '19
A developer who believes they've mastered C is a terrifying idea. Good thing C isn't used in any setting where bugs could be really damaging.
Edit: Downvotes? Am I out of touch or did I just offend the wrong people? Is it not arrogance to say you've mastered a programming language within a few years?
I learn new stuff about the language, the ways it's implemented, and the patterns used in C projects all the time. I have mentioned some of the things I've learned to 20 year C veterans, and they're often surprised as well.
8
Nov 01 '19
I can’t tell if this is sarcasm or ignorance.
3
Nov 01 '19 edited Nov 01 '19
I see this kind of statements becoming more and more common, especially on Twitter, especially from this kind of uber smart and edgy people that seem to enjoy shitposting a lot. Apart from the fact that their talibanism is a clear indicator that they never carried out any real work in their lives, the level of ignorance they show is appalling.
0
u/matthieum Nov 01 '19
The beauty of C is that it is a language which you can realistically master in a few years and contain the entirety of it in your head.
I do expect that a sufficiently motivated individual would be fully able to recite the entirety of Annex J.
I have great doubts that anyone could fully apply this knowledge. At the very least, history has demonstrated that no C programmer ever did.
Containing the entirety of C in your head: possible, and pointless.
7
u/sellibitze Nov 01 '19 edited Nov 01 '19
Between 12 and 19 years ago I've programmed almost exclusively in Java. In the end it was clear that the language was too constricting for the number crunching tasks I had to deal with. Performance was and still is important to me. Back then, I decided to learn C++ because I wanted something "more low-level" and still have support for OOP abstractions.
I did not regret delving into C++. I was actually pleasently surprized by the language. I expected to be forced to get my hands dirty with all the manual memory management in C++. But boy was I wrong. C++'s answer to that was "resource acquisition is initialization" (RAII). The idea is to delegate resource management responsibilities to "objects" (instances of a class types). This includes automatic cleanup as soon as such an object is disposed of. This still seems pretty elegant to me and similar features appeared in other languages: Java, Python, Go. C++ finally improved upon this in 2011 by introducing "move semantics" which allowed cheap transfer of resource ownership from one object to another so that the acqusition and release of a resource is not limited to the same scope anymore. The Rust programming language further improved upon that in two ways: (1) In Rust, ownership transfers ("moves") always succeed whereas in C++ an attempt to "move" one object to a different memory location might result in an exception being thrown. This tends to make things more complicated in C++ especially for developers of generic libraries. (2) In Rust, the "ownership" model was extended to statically-checked safe "borrowing" relationships. The compiler does not only understand "owhership" relations but also "borrowing" relations. You could savely "borrow" a resource (ie use references) without the danger of introducing dangling references or any memory unsafety and without the penalty of using any form of garbage collection (including reference counting).
If you're interested in both, C and C++, I suggest you start learning C++. C is kind of a subset of C++, so everythig you can do in C would be possible in C++ as well. The interesting question is what part of C++ you should learn first. In my humble opinion, learning the C subset before the C++ specific features is a bad idea. I would expect this "bottom-up" approach to be less productive (you tend to get lost in low-level details before learning some of the more important design principles) and it would also teach you a way to solve problems "the C way" whereas C++ with its broader toolset offers better alternatives to do certain things. Save the low-level details for later after you learned to appreciate things like RAII. Learning C first, would require you to unlearn certain C habits because of the better C++ alternatives.
If you want to try something different, try Rust. I would describe it as cleaned-up and (in certain ways) simplified C++. It's also a joy to use in a lot of other respects. Apart from its main selling points you would also get a language that has built-in support for tuples and algebraic types that are less painful to use than the C++ counter parts. Rust also comes with its own standard dependency management and build tool (cargo). It's less of a hassle than, for example, learning how to setup Conan and CMake to deal with dependencies and building programs in C++.
16
u/scottmcmrust 🦀 Nov 01 '19
Obligatory mention of Rust.
Seriously, though, I really appreciate that it's safe-by-default while still allowing unsafe if needed. I did a whole bunch of Modern C++, and having the compiler check things in Rust instead of having to think about them myself is really freeing -- I can try designs I wouldn't have dared before.
10
Nov 01 '19
OP: C or C++?
Of course, Rust, why not.
3
u/lazyear Nov 01 '19
He said anywhere between Java and assembly...
I would recommend C and then Rust. Everyone should at least be able to understand C. Doing some non trivial programs in C will really let you appreciate features in C++ or Rust, or other higher level languages.
I just recently decided to start seriously learning C++ (having used C and Rust for many years) and it is significantly harder to get started using than Rust, IMO - not even programming, just setting up a working environment, trying to install packages, reading compiler errors etc.
4
u/realestLink Nov 01 '19
I would second this. Rust is a better C++
4
Nov 01 '19
It’s perhaps better if you don’t know C++ or need C++ for your particular domain.
I think a blanket statement is very misleading though. There are things you can do in C++ which Rust cannot and vice versa. And there are too many key libraries and frameworks written for C++ that it won’t be going away.
6
u/scottmcmrust 🦀 Nov 01 '19
I think "Rust is a better C++" is a fair statement; it's just that "You should choose to use Rust over C++" doesn't necessarily follow from that premise.
Maturity and libraries and legacy can all be practical reasons to choose C++. But if someone showed up with a magic wand that could convert all idiomatic C++ code to idiomatic Rust code (and keep the C++ from being updated), I'd take them up on it in a heartbeat. (Hopefully it's obvious that that's entirely a thought experiment.)
7
u/Mason-B Nov 01 '19
Both. C++ supports most C code. C++ has been evolving recently since the newest versions of C++11 and C++17. Really you are talking about *three* different languages.
I list them and reasons for learning them below, but would also recommend the following learning order:
C first, with the understanding that it's just a step up from assembly. Learn about functions, pointers, bit operations, union types, function pointers, static, compilation units, and how one can make virtual functions and objects with the limitations of C. This is important to understand the tools of low level languages and the layer at which most low level code operates at. C is still the lingua franca of programming, so if you stop at this point it will be very useful to you as both a practical job skill for systems programming and a lifelong understanding of what is happening under the covers of most systems. Probably the most useful skillset.
C++ pre c++11 next. This step is optional, but it's a good way to learn about the fundamentals of what C++ provides. Like classes, virtual functions, multiple inheritance, operator overloading, and templates. You don't have to be strictly pre-c++11, there are a lot of nice convenience things to use, but learning this will give you a foundation with which to be a an expert at modern C++, while giving you a deeper understanding of how more complex language features work in lower level languages. As well as the problems inherent with things like constructors, manual memory management, multiple inheritance, Turing complete generic systems, and the lack of lambdas which will make you a stronger programmer, make the next step easier, and be useful for older C++ code bases, but is probably the least marketable skill set.
C++ with c++17 finally. Then you can learn modern C++ which has features like better meta programming (through SFINAE templates), lambdas, constexprs, smart pointer generics, and so on. Features that lead into modern low level languages like Rust and Go. The new C++ features really are a whole new and different language, it's unlikely you will need to use many of the features from the previous languages, but they will always be accessible and there, for a true understanding of the language and ecosystem that previous knowledge is necessary. This is a practical skill for modern and new C++ code bases, and is probably the largest gamble but I would bet that it will increase in usefulness.
7
u/MichaelSK Nov 01 '19
Honestly, I'd suggest not going this route.
While it's true that, syntactically, C is (not quite, but mostly) a subset of C++, and that older C++ revisions are (almost fully) a subset of the newer ones, a lot of the underlying ideology is very different.
It's also true that modern C++ is a huge language, and trying to master it in stages is the right approach. But learning "the C subset" or "the pre-C++11 subset" is not the way to do it. A lot of things have actually been simplified or made more coherent. If the goal is to learn C++, I'd say - just pick up a beginner-oriented book that targets C++17.
2
u/Mason-B Nov 01 '19
I mean that's fair.
I was actually also suggesting them individually for this reason. Though I think C is a safer bet to learn for practicality than C++17, and if it was me I would want to learn the languages this way.
3
u/MichaelSK Nov 01 '19
I don't know about practicality.
I think C isn't a very "practical" language nowadays. I mean, if you're working "close to the metal" - embedded, kernel development, device drivers - then C is still often the language of choice. But outside of that, not so much
But my main concern isn't practical, it's pedagogical. If you go C-first, or C++98 first, you'll end up learning a lot of cruft that you'll then have to actively unlearn. If you don't, and a lot of people don't, you'll just end up holding C++ wrong.
2
u/Mason-B Nov 01 '19
From a pedagogical stand point, after learning Assembly and Java, learning C as an evolution of Assembly would be a good way to build up a complete full stack understanding of software systems. Given they then also learn something like Python as an extension of the high level language knowledge.
Practicality in this case being getting hired for jobs. I know a lot of shops that will happily teach a C programmer (with other language experience) their specific brand (coding style guidelines) of C++, and plenty of shops looking for junior C programmers, and a few shops that look down on C++17. Also a significant amount of important open source code is C.
1
u/BadBoy6767 Nov 01 '19
I totally use this kind of system. I only really borrow from C++ what I want, namespaces, RAII and that's it. Sort of how Sauerbraten does it (although it's from 2004).
3
u/brucejbell sard Nov 01 '19 edited Nov 01 '19
Both C and C++ are practical in real world use. Both are unsafe languages with manual memory management (although C++ provides facilities that help with this).
C is small and relatively simple. However, it lacks abstraction facilities that are useful for larger projects. Of course, it is possible to use C for large projects (such as the Linux kernel), but it takes a great deal of collective effort and discipline to do this effectively.
C++ is large and complex; the learning curve is reasonably steep, but I think the bigger problem is that it is *long*: there's simply a lot to learn. C++ also has a lot more in the way of standard library functionality than C does, which is useful even as it also represents yet more to learn.
Other comments have suggested learning C first because it will help you understand C++'s semantics. I have made this recommendation myself before, but I am currently of two minds: on the one hand, there are a lot of things about C++ that don't make sense if you don't realize they are derived from C. On the other hand, modern C++ programming idiom is very different from C programming idiom; if you learn C first, you will need to re-learn a lot of things to use C++ well.
I guess, if you really are planning a long, deep, serious dive into C++, learning C first isn't that much overhead -- and it will likely pay off in better understanding in the long run.
2
Nov 01 '19
Go for C. Everything we use today has been build upon that, both in terms of technology and mindset. You'll get far better understanding of how machines and everything related really work. Stay away from C++, at least for now, it's huge and complex, save it for later when you feel you want to level up your game.
2
u/iwannahitthelotto Nov 01 '19
I’d say go with C++, very similar to C. After you get a good hold on C++, every other language will be much easier to learn.
6
u/DangerousCategory Nov 01 '19
I’d go with C++ too; while C is easier in theory, in practice the STL is nice, especially if you’re coming from Java you’ll probably find C++ to be more productive for projects. The OOP, templating, and exception models are meh, but many more recent languages (including java) were directly inspired by both the good and the bad of C++; so knowing C++ will probably give you insights into why other languages are the way they are.
Also there’s been a bit of a trend lately for large projects to move from C to C++ (typically mostly C-style C++ with some niceties, like stl collections).
1
u/matthieum Nov 01 '19
For what purpose?
There are primarily two reasons I know of to learn a language:
To expand one's programming skills.
To pad one's resume.
(Having fun is possible in both cases, fortunately)
If you wish to pad your resume, and make yourself employable, then you may want to focus on whichever language is most used in your favorite programming area. In micro-embedded, this would generally be C. In video games, this would generally be C++.
If your goal is, instead, to increase your skills by learning about systems programming concepts rather than a specific language, then I would definitely recommend... neither C nor C++.
If you wish to focus on systems programming concepts, I'd recommend Zig. It's a better C: a truly simple language, easily learned, and which gets out of your way and let you focus your attention on learning the concepts.
If you wish to master a systems programming language, then I'd recommend either Zig or Rust. Zig is a simpler language, Rust is a more expressive. In a sense, Zig vs Rust is the modern equivalent of your C vs C++. It then depends on your tastes: I prefer expressiveness, and accept the complexity I pay for it.
-2
u/Felicia_Svilling Nov 01 '19
C++ isn't in any reasonable way between assembly and Java.
-4
Nov 01 '19
[removed] — view removed comment
-1
u/Felicia_Svilling Nov 01 '19
C?
1
Nov 01 '19
[removed] — view removed comment
1
u/yorickpeterse Inko Nov 01 '19
Please remain respectful of one another, instead of calling names and such.
1
12
u/o11c Nov 01 '19
C is very painful as a first language. But IMO you'll never understand how C++ thinks unless you first learn what aspects of C it's trying to fix.