address of operator, Returns the address of a variable.
C Programming Language Operators and Enums in C Language (Article) Operators and Enums in C Language (Program)
783Program:
//Assignment operator // sizeof() operator // address of operator #include"stdio.h" void main() { int a = 4; int* ptr; /* example of & */ ptr = &a; /* 'ptr' now contains the address of 'a'*/ printf("value of a is %d\n", a); printf("*ptr is %d \n", *ptr); }
Output:
value of a is 4 *ptr is 4 Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.