1. Describe each of following statements ?
char str[10] = "arista";
char *str[] = arista;
char *str = arista;
const char *str = "arista";
char *const str = "arista";
2. Describe each of following function prototype ?
char func(void (*foo)(void), void (*bar)(void));
void func(char *s1, char *s2);
int* func(int *);
3. What does the following program do ? Correct/Complete the program.
#define MAX_NUMUBER(a, b) a > b ? a : b;
int main()
{
int arr[] = {5, 2, 4, 0, 8, 6, 11, 3};
int i, res = arr[0];
for (i = 1; i < MAX_SIZE; i++)
res = MAX_NUMBER(res, arr[i]);
printf("%d", res);
}
4. Is below program valid ? What will be the output ?
int main()
{
char *str = "arista";
printf(str);
}
5. Write a program to remove duplicate from a linked list.
6. How to generate symbol-file for a program ?
7. What is the first argument of printf ? where it is stored ?
8. What is physical memory ?
9. What is virtual memory ?
10. What is MMU ?
11. When a program is assigned physical memory ?
12. Who loads program into the memory ?
13. Given an address, how would you determine whether it belongs to process's address space ?
14. Loader operates within user-address space or kernel address space ?
15. Tell me about your work/project with the current employer.
16. Do you have any questions for me ?