Identify and correct the errors in each of the following pieces of code. [Note: There may be more than one error in each piece of code.]
a) int x = 5; int y = 10; int z = x + y;
b) float a = 3.14; float b = 2.71; float c = a * b;
c) char* str = "Hello, World!"; int len = strlen(str);
d) int arr[5]; for (int i = 0; i <= 5; i++) { arr[i] = i; }