Posts by Alexsander Borgesdamaceno • 541 points
8 posts
-
2
votes1
answer610
viewsQ: Sequential Static List
Guys look at this following code : lista is a struct lista * crialista() { lista *li; li = (lista *) malloc(sizeof(struct lista)); if(li !=NULL) { li->qtd = 0 ; } } because it was allocated lista…
-
2
votes2
answers109
viewsQ: Abstract type of variable
I have this line of code: USphereComponent * SphereComponent = CreateDefaultSubobject<USphereComponent>(TEXT("RootComponent")); How this kind of feedback works in my case (USphereComponent)?…
c++asked Alexsander Borgesdamaceno 541 -
5
votes1
answer1602
viewsQ: Char vector cast for pointer
People how a cast works in a vector char for a pointer int? for example: char vetor[2]; int *p; p = (int *)&vetor; Can someone explain me this line?…
-
1
votes1
answer657
viewsQ: Size of struct allocation
When declaring a normal variable of type int for example, the compiler goes there and, depending on the architecture, separates 4 bytes. struct exemplo{ int x; int b; }; int main(){ struct exemplo…
-
0
votes1
answer845
viewsQ: Physical and logical tcp/ip address protocol?
If I already have a physical address (MAC), what is the utility of a logical address (IP)? Why networks need both types of address to function?
-
6
votes2
answers403
viewsQ: Computer buffer
I’ve read several places about buffers and there they say that it is a place in memory to store temporary values so they give an example like in C: char exemplo[10]; and say that this is a buffer,…
-
17
votes1
answer484
viewsQ: Data access performance in heap and stack and object allocation
Data access in the stack is faster than in heap? And why allocate an object to heap?
-
6
votes2
answers2673
viewsQ: How big is a memory address?
What size of a memory address? I think a memory address has 32 bits, but I’m seeing it in a Debugger one int, where he separated 4 addresses for him. So, an address is equal to 32 bits? Because…