Data Representation | Program Representation | |||||
string int x[3] char x 0x9cd0f0ad 01101011 |
Objects Arrays Primitive types Addresses bits |
Java code C++ code C code x86 code IBCM hexadecimal |
High-level language Low-level language Assembly language Machine code |
|
|
g++: | |
clang++: |
Source code: evenodd.cpp (src)
|
|
Source code: pointers.cpp (src)
|
|
int n = 30;
int * p;
*p = n; //ERROR!!!
int *p=NULL; // better code, then add code to check
// for NULL value
void swap(int * x, int * y) {
int temp = *x;
*x = *y;
*y = temp;
}
Click the center of the target
Close window