Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

diiferent between * and & in c

int a; // Declares a variable
int *b; // Declares a pointer
int &c; // Not possible

a = 10;
b = &a; // b gets the address of a
*b = 20; // a now has the value 20
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #diiferent
ADD COMMENT
Topic
Name
1+6 =