Understanding the Difference between int and int* Pointers

  • Thread starter Thread starter transgalactic
  • Start date Start date
transgalactic
Messages
1,386
Reaction score
0
when i declare

Code:
int* ptr_a, ptr_b;

why the type of ptr_b is int
and not int*

?
 
Technology news on Phys.org
Because
Code:
int *pta_a, ptr_b;
means
Code:
int *pta_a; int ptr_b;
and not
Code:
int *pta_a; int *ptr_b;
which would be
Code:
int *pta_a, *pta_b;
.
 
thanks
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Back
Top