[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

>want to get first element in array >array[0] wtf

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 26
Thread images: 1

File: facebook_zuck.jpg (23KB, 384x384px) Image search: [Google]
facebook_zuck.jpg
23KB, 384x384px
>want to get first element in array
>array[0]
wtf i hate programming now
>>
it's not that bad

php's array(1, 2, 3) is shit tho

beautiful js: [1, 2, 3]
>>
>>58492880

>array[0]

inferior languages that let you compile shit like this always crack me up
>>
>>58492880
>he doesn't know it means *(array + 0)
Stick to baby languages.
>>
>>58492880
>he doesn't access like 0[array]
Pleb
>>
>>58492880
>want to get a number from the user
>scanf("%d", n);
>segmentation fault
wtf i hate programming now
>>
>>58493674
n = int(input())

Python masterrace
>>
>>58495390
>using input instead of raw_input
>using python3
>>
>>58492880
ARRAY POINTERS REPRESENT MEMORY OFFSETS!
>>
>>58493674
>being incompetent
>passing n by value
>expecting anything else
>>
>>58495414
input is the same as raw_input in Python 3
>>
(first array)


¯\_(ツ)_/¯
>>
Is anyone here autistic enough to always ignore the [0] element and start filling it from [1] due to extreme OCD and irritation of having to -1 or +1 in certain functions due to the array starting from 0?

I surely can't be the only one
>>
>>58492880
>want to get zeroth element in array
>array[0]
wtf i love programming now
>>
>>58492880
>Why is my array starting with first number?
>>
>>58492880
0 comes before 1.
there's an infinite number range between 0 & 1.
0.1,0.11,0.11,0.111...1
how do you just completely skip it.
>>
>>58492880
>not using
0[array]

cmon, it's 2017 man
>>
>>58495818
that's the mild to the slot. It's not vacant until there is a mold. That's a logical imperative, though. Not a physical one. Thus, rhis would be a discrete analogy.
>>
Computers like 0.
Deal with it.
>>
>>58492880
Fun fact. In Europe, the bottom floor of a building is the "ground" floor, and the floor above that is the "first" floor. This honestly could be why the beginning element of an array is the 0th element
>>
>>58495921

wait, this isn't the case in America? In Australia we always have ground floor, then first
>>
>>58492935
php array can be [1,2,3] too, if you dont use a php version from the stone ages
>>
>>58495936
I thought everything is opposite in Australia, ground floor is 0 then you go up, -1, -2 etc...
>>
>>58495921
Isn't this more of a British thing than European?
>>
>>58495921
What kind of Europe are you talking about?
First floor is the first floor.
>>
>>58495921
it's the "level ground" and the "one ceiling" idiot
Thread posts: 26
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.