Baby's first pointer
1
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.
2
Name:
Anonymous
2011-01-24 20:22
I believe what you're looking for is *(*argv + 1) .
3
Name:
Anonymous
2011-01-24 20:25
4
Name:
Anonymous
2011-01-24 20:31
5
Name:
Anonymous
2011-01-24 20:53
6
Name:
Anonymous
2011-01-24 20:57
>>5
YOU MISSPELLED
MY ANUS
7
Name:
Anonymous
2011-01-24 20:58
argv @ char+ c@
8
Name:
Anonymous
2011-01-24 21:07
9
Name:
Anonymous
2011-01-24 21:09
10
Name:
Anonymous
2011-01-24 21:14
11
Name:
Anonymous
2011-01-24 21:29
>>10
You misspelled ``I'm a faggot''.
12
Name:
Anonymous
2011-01-24 21:33
13
Name:
Anonymous
2011-01-24 22:49
14
Name:
Anonymous
2011-01-24 23:13
>>11
not this again,
shit !
15
Name:
Anonymous
2011-01-24 23:20
'>mfw the nice/lold messages are a spam bot
:o <---- my face
16
Name:
Anonymous
2011-01-24 23:20
17
Name:
Anonymous
2011-01-24 23:24
18
Name:
Anonymous
2011-01-24 23:29
I fapped with tears running down my face.
19
Name:
Anonymous
2011-01-24 23:50
>>18
I lol'd with tears running down my face.
20
Name:
Anonymous
2011-01-25 0:14
>>15
`>
Why did the
/r9k/ ``faggots'' decide to immigrate to the textboards all of the sudden?
21
Name:
Anonymous
2011-01-25 0:20
>>20
your the faggot, you fucking cunt
22
Name:
Anonymous
2011-01-25 0:35
>>21
What
about my the faggot?
23
Name:
Anonymous
2011-01-25 1:14
>>22
You have a faggot? What's its name? how well does he burn?
24
Name:
Anonymous
2011-01-25 1:29
>>20
`implying I wasn't here always
0/10 You're just butthurt.
25
Name:
Anonymous
2011-01-25 1:54
>>20
That's because r9k is dead and moot is banned
26
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.
27
Name:
VIPPER
2011-01-25 4:07
Many JEWS
28
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).
29
Name:
Anonymous
2011-01-25 13:20
Celsium
CELSIUS HAS NO FUQIN' PLURAL ihbt
30
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
31
Name:
Anonymous
2011-01-25 14:21
32
Name:
Anonymous
2011-01-25 14:24
d) o C (faggot)
33
Name:
Anonymous
2011-01-25 14:25
34
Name:
Anonymous
2011-01-25 14:37
>>33
YOU MENA CELSOLLOXEN .
35
Name:
Anonymous
2011-01-25 14:39
36
Name:
Anonymous
2011-01-25 15:25
Degrees Celcius
37
Name:
Anonymous
2011-01-25 15:26
centigrades.
38
Name:
Anonymous
2011-01-25 15:26
39
Name:
Anonymous
2011-01-25 15:27
>>36
a group of degrees is actually called an
angle
40
Name:
Anonymous
2011-01-25 15:58
a group of programmers is actually called autism
41
Name:
Anonymous
2011-01-25 16:29
a group of JEWSes is actualy called JEWS
42
Name:
Anonymous
2011-01-25 17:07
ITT: butthurt americans hanging on their IMPERIAL unit system
43
Name:
Anonymous
2011-01-25 23:35
>>42
Because Celsius and Kelvin aren't measured in
degrees are they?
Dumb-fucking-ass
44
Name:
Anonymous
2011-01-25 23:37
>>42
You mean
ENGLISH measurement system.
America gained independence before the British Empire switched to Imperial system.
45
Name:
Anonymous
2011-01-26 3:10
>>43
Kelvins are not measured in
degrees ,
friend.
46
Name:
Anonymous
2011-02-04 16:25