python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Double Pointer and Local Scope Confusion
I am taking a c programming course on Udemy and am quite confused when passing a double pointer into a function. In the example, the instructor passes the address of a pointer as an argument to a fun...
karl-gardner
Votes: 0
Answers: 2
what address is when add'*'before structure name in C
typedef struct PeoInfo
{
char name[20];
int age;
char sex[5];
char tele[12];
char addr[30];
}
struct PeoInfo c[10] = {0};
printf("p=%x\n", *c);
printf("p=%x\n&quo...
Michael Zhao
Votes: 0
Answers: 1
This dereferencing pointer in C works fine, but it looks wrong
This C code works fine (the compiler is GNU11). I'm sure it can improved since it gives a "dereferencing type-punned pointer" warning, but I don't know exactly how.
A uint8_t array contains ...
Marcos
Votes: 0
Answers: 1