tailieunhanh - C++ Lab 16 Pointers

Dr. John P. Abraham, Professor Until now we have talked about variables that hold values of differing data types. For example: int x =20; The memory location referenced by x has a value of 20. float y=; The memory location referenced by y has a value of . In early chapters we discussed that a variable name is an alias for a memory address. What if we wanted to know the address of the memory location where the inter variable x that has a value of 20 is stored? We can use the address operator &x to do that

TỪ KHÓA LIÊN QUAN