Swap
void swap(int *a, int *b) {
int temp = *a;
int *q = &b;
*a = *b;
*b = temp;
}
void main() {
int a = 1;
int b = 2;
swap(&a, &b); // assign address of a and b
// a, b values are swapped
}
Cryptography Motivation
Array Basics
C Array vs JavaScript Array
Arrays in Action
Array Caveats
Strings
Multidimensional Arrays
Function Pointers
Security Hazards
Recursion: An Alternative to iteration
Writing Code with Recursion
Tail Recursion
Mutual Recursion
(Optional) Recursion Theory