Print out your answers (or hand write them on paper) and turn them in.
int *p, a[5] = {1,2,3,4,5};
p = a;
p++;
p[3] = 0;
#include <iostream>
int main(void) {
int a[5]={1,2,3,4,5};
int *b;
int i = 0;
while ( i < 5 ) {
b[i] = a[i] * a[i];
b++;
a++;
i++;
}
for (i=0; i < 5; i++)
cout << a[i];
return 0;
}
#include <iostream>
int main(void) {
int a[5] = {1,2,3,4,5};
cout << a[5];
return 0;
}
struct Node {
int value;
node *next;
};
Node *front = NULL; // Pointer to first element in list.
// Initialized to NULL to indicate empty list.
B'.
// create node for character 'B'
// add node to currently empty list
if ( front == NULL ) {
// add to linked list
}
B', 'C', and 'D'.
[])
operator.