CIS 123 comp mem Matching
By definition, global variable is the one declared |
outside of any function (at the file level) |
Using calculator, convert decimal value 123 to hex: |
A C++ program
#include <iostream>
int main()
{
int x = 123;
std::cout << &x << '\n';
return 0;
}
prints |
the memory address of the variable x |
Computer memory locations (addresses) are numbered sequentially starting at |
T or F, The higher the memory address in RAM the longer it takes for the CPU to access that memory. |
Empty parentheses in main( ) indicate that |
the function has no input parameters |
Does function main( ) have a return value in a C/C++ program? |
In C, C++, and Java, int is a |
0:00