High-level Language
C/Java Compiler
temp = v[k]; v[k] = v[k+1]; v[k+1] = temp;
Fortran Compiler
TEMP = V(K) V(K) = V(K+1) V(K+1) = TEMP
Assembly Language
lw $to, 0($2) lw $t1, 4($2) sw $t1, 0($2) sw $to, 4($2)
#includeint main() { char A = '2'; int sum = A + 10; std::cout<<"sum ="<