[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


Python coder here. I still don't get it, why the different results?
>>
>>109646640
This doesn't even compile. You cannot auto-cast numbers to pointers in C++, only in C.
You are trying to dereference memory in location 19, you would get a segfault if not for the C++ compiler stopping you.
Why are you importing iostream anyway? You are using printf in stdio.h
>>
>>109646667
it compiles in my machine retard
>>
>>109646640
it doesn't compile you fucktard
>>
>>109646640
Are you sure that's Python? It looks weird.
>>
>>109646640
Maybe you should actually learn the language instead of trying to assume it works like Python. If you don't even know what a pointer is yet, you have zero right to go about complaining. You're basically on day one of using the language.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.