Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Baby's first pointer

Name: Anonymous 2011-01-24 20:18

Anyone kind enough to help a rookie out. What's the pointer (style?) equivalent of argv[0][1]? Consider the following code fragment executed with the following command "./test pointers"

int main(int argc, char *argv[])
{

    printf("argv[0][0] = %c\n", argv[0][1]);//prints 'e'
    printf("*(argv+?) = %c\n", *(argv+?));//What's the pointer equivalent of the above array?
    return 0;
}


I know that *(argv+1) and argv[1] are equivalent. And yeah, I already know that arrays are const pointers.

Name: Anonymous 2011-01-24 20:22

I believe what you're looking for is *(*argv + 1) .

Name: Anonymous 2011-01-24 20:25

>>2
Many thanks.

Name: Anonymous 2011-01-24 20:31

>>1
YOU MISSPELLED BABBY

Name: Anonymous 2011-01-24 20:53

>>4
YOU MISSPELLED BOBBY

Name: Anonymous 2011-01-24 20:57

>>5
YOU MISSPELLED MY ANUS

Name: Anonymous 2011-01-24 20:58

argv @ char+ c@

Name: Anonymous 2011-01-24 21:07

>>6
NO U

Name: Anonymous 2011-01-24 21:09

>>8
YOU MISSPELLED YOU

Name: Anonymous 2011-01-24 21:14

>>9
nice!

Name: Anonymous 2011-01-24 21:29

>>10
You misspelled ``I'm a faggot''.

Name: Anonymous 2011-01-24 21:33

>>11
lol'd

Name: Anonymous 2011-01-24 22:49

>>11
nice.

Name: Anonymous 2011-01-24 23:13

>>11
not this again, shit!

Name: Anonymous 2011-01-24 23:20

'>mfw the nice/lold messages are a spam bot

:o  <---- my face

Name: Anonymous 2011-01-24 23:20

>>15
nice.

Name: Anonymous 2011-01-24 23:24

>>15
I lol'd

Name: Anonymous 2011-01-24 23:29

I fapped with tears running down my face.

Name: Anonymous 2011-01-24 23:50

>>18
I lol'd with tears running down my face.

Name: Anonymous 2011-01-25 0:14

>>15
`>
Why did the /r9k/ ``faggots'' decide to immigrate to the textboards all of the sudden?

Name: Anonymous 2011-01-25 0:20

>>20
your the faggot, you fucking cunt

Name: Anonymous 2011-01-25 0:35

>>21
What about my the faggot?

Name: Anonymous 2011-01-25 1:14

>>22
You have a faggot?  What's its name? how well does he burn?

Name: Anonymous 2011-01-25 1:29

>>20
`implying I wasn't here always
0/10 You're just butthurt.

Name: Anonymous 2011-01-25 1:54

>>20
That's because r9k is dead and moot is banned

Name: Anonymous 2011-01-25 2:22

That's because r9k is dead, moot is banned, 4chan is offline for months, US networks collapsed, population massacred, Earth is cooling down 2 degrees Celsium every week.

Name: VIPPER 2011-01-25 4:07

Many JEWS

Name: Anonymous 2011-01-25 13:06

If p is a pointer, then p[i] is equivalent to *(p+i). You can repeatedly apply this to multiple array subscripts: p[i][j] is equivalent to (*(p+i))[j] is equivalent to *(*(p+i)+j).

Name: Anonymous 2011-01-25 13:20

Celsium
CELSIUS HAS NO FUQIN' PLURALihbt

Name: Anonymous 2011-01-25 14:16

This thread has been closed and replaced with the following thread:

Subject:
What's the plural of ``Celsius''?
Name:
Email:


a) Celsium
b) Celsii
c) Celsius (faggot)
d) Other

Name: Anonymous 2011-01-25 14:21

>>30
celciuses

Name: Anonymous 2011-01-25 14:24

d) oC (faggot)

Name: Anonymous 2011-01-25 14:25

>>30
Celsexen

Name: Anonymous 2011-01-25 14:37

>>33

YOU MENA CELSOLLOXEN.

Name: Anonymous 2011-01-25 14:39

>>30
Celsiudder

Name: Anonymous 2011-01-25 15:25

Degrees Celcius

Name: Anonymous 2011-01-25 15:26

centigrades.

Name: Anonymous 2011-01-25 15:26

>>30
Cepples

Name: Anonymous 2011-01-25 15:27

>>36
a group of degrees is actually called an angle

Name: Anonymous 2011-01-25 15:58

a group of programmers is actually called autism

Name: Anonymous 2011-01-25 16:29

a group of JEWSes is actualy called JEWS

Name: Anonymous 2011-01-25 17:07

ITT: butthurt americans hanging on their IMPERIAL unit system

Name: Anonymous 2011-01-25 23:35

>>42
Because Celsius and Kelvin aren't measured in degrees are they? Dumb-fucking-ass

Name: Anonymous 2011-01-25 23:37

>>42
You mean ENGLISH measurement system.

America gained independence before the British Empire switched to Imperial system.

Name: Anonymous 2011-01-26 3:10

>>43
Kelvins are not measured in degrees, friend.          

Name: Anonymous 2011-02-04 16:25


Don't change these.
Name: Email:
Entire Thread Thread List