Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
chadd1746437yThis is the number one reason I dread taking CS at school.
I understand every bit of this code. But I don't understand where one language will throw, say, a type error (cannot convert int to string) and another won't. My answers on a test will reflect this because I know too many languages for my own good. -
@chadd17 there isn't any conversion in this! The answers are either:
543
54
5
Null
There isn't any int to string conversion. The cout << operator accepts an int as an argument and will print them without converting to string -
chadd1746437y@VirtualProtect it's details like that I would miss on a test cause I would get it confused with other functions and languages that operate differently. That's my point.
-
xsacha4317yThis is a bit too easy. Why do people seem to find basic C complicated?
This is just like a for loop in every other language.
The bizarre part is including iostream instead of stdio.h.
If you are including C++ headers, may as well use other C++ features too. -
The output is: you fucking wanker who wrote this code, fuck off. Do not write over cinplicated shit code like that.
Related Rants
What is the output?????
undefined
programming
coders