Questions tagged [address]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
25 views

Lab 4 - header vs &header

''' const int HEADER_SIZE = 44; uint8_t header[HEADER_SIZE]; // with & fread(&header, HEADER_SIZE, 1, input); fwrite(&header, HEADER_SIZE, 1, output); // without & fread(header, ...
user avatar
0 votes
1 answer
16 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 ...
user avatar
0 votes
1 answer
95 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 "...
user avatar
  • 165
0 votes
1 answer
27 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 ...
user avatar
0 votes
1 answer
76 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 ...
user avatar