Questions tagged [address]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

According to CS50 Lecture 4 on Memories, my code should not be able to compare two strings and print“same”. But it does print “same”. Why?

Was expecting it print out "different" since I've created 2 different variables and stored the same values MANUALLY TYPED OUT. According to lecture 4, strings are pointers and when compared, ...
0
votes
1answer
10 views

pointers and addresses

int m=10; int *ab=&m; printf("address of *ab:%p\n",&*ab); printf("adress of ab:%p\n",&ab); output: address of *ab:0x7ffd85fddefc adress of ab:0x7ffd85fddf00 i ...
0
votes
1answer
32 views

Confusion about comparing strings and int/char

This question concerns variables, pointers and addresses as addressed in Lecture 4. I understand that strings are not "real" in the way that integers and characters are, and are just defined as "...
0
votes
1answer
26 views

pointers to character

I have a question about character pointers and the addresses that it points to. So I have this lines of code char* name = "Any name"; printf("%s\n", name); printf("%p\n", name); name = "Any other ...
0
votes
1answer
75 views

resize rewrite method

I've just successfully completed resize less. It took me a lot of time, but, final correction that I needed to make surprised me a lot. There was a huge mess of RGB triples when my fwrite function was ...