21. Which of the following algorithm is used for deadlock avoidance?
Answer: Bankers
Explanation:Here is no explanation for this answer
Workspace
Commvault Global Edge
22. int a[] = {5, 7, 9}, *p = a, b;
Answer: b = *++p++;
Explanation:error: lvalue required as increment operand
Workspace
Commvault
23. What is the meaning of a static function in C?
Answer: It is local to a file in which it is declared
Explanation:Here is no explanation for this answer
Workspace
Commvault
24. Which of the following algorithmic paradigm is used in the merge sort?
Answer: Divide and Conquer
Explanation:Here is no explanation for this answer
Workspace
Commvault Societe Generale
25. Which of the following is a valid bit field declaration?
Answer: struct a {int var : 0; }test;
Explanation:Here is no explanation for this answer
Workspace
Commvault
26. What is the output of the program?
#include
void main () {
unsigned char C = 32;
printf("%d %d", C^=C, !(C & 128) && !(C & 1));
}
Answer: 0 1
Explanation:Here is no explanation for this answer
Workspace
Commvault
27. #include
void main () {
int mat [4][5] = {1,2,3,4,5,6,7,8,9,10,11,12};
printf("%d %d ", *mat[*(mat[3] + 2)], 2[5 + 2[mat] - 3]);
}
Answer: 1 0
Explanation:Here is no explanation for this answer
Workspace
Commvault
28. #include
#include
void main ()
{
char str[][5] = {{'h','e','l','l'}, {'w','e','l','l'}};
printf("\n %s ", strncpy (*str, *(str + 1), 0));
}
Answer: hell
Explanation:Here is no explanation for this answer
Workspace
Commvault
29. #include
#include
void main () {
char str[][5] = {{'h','e','l','l'}, {'w','e','l','l'}};
char str1[15] = "All is ";
printf ("%s ", strcat(strchr(str1, 'l'), *(str+1)));
}
Answer: ll is well
Explanation:Here is no explanation for this answer
Workspace
Commvault Sopra Steria
30. What is the technique of allocating memory during runtime on demand known as in C++?
Answer: Dynamic memory allocation
Explanation:Here is no explanation for this answer
Workspace
Commvault