Signup/Sign In

C Language Interview Questions Test 10

This Test will cover complete C with very important questions, starting off from basics to advanced level.
Q. C is derived from which of the following languages?
Q. Which of the following is not both unary and binary operator?
Q. Which of the following keyword does not indicate a storage class?
Q. Which of the following expressions is true for the below code fragment?
struct s {
    int i;
    float f;
};

union u {
    int i;
    float f;
};

Q. Fill in the correct storage class given in the underlined blank space: "The compiler will give an error if we attempt to get the address of a variable with __________ storage class."
Q. Which of the following options, describes the behaviour of the following program?
auto int i;
int main() 
{ 
    // empty function
}
return 0;
Q. What is the output of the following program?
int main() 
{
    char st1r[] = "Hello";
    char str2[5] = "Hello";
    printf("%d %d", sizeof(str1), sizeof(str2));
}
Q. Which of the following is a compile-time operator?
Q. Which of the following is not a numbering system supported for integer constants in C?

Q. What is the result of the expression (2 >> 1)?
Q. What is the output of the following program?
int main() 
{
    int i = 5, j = 2;
    printf("%d %d", i << j, i >> j);
    return 0;
}
Q. Which of the following global variables is set when the log function(defined in "math.h") fails?
Q. Which of the following is not a memory area in an executable C program?
Q. Which is the standard library function used for invoking other programs from the current program?
Q. Which is the standard library function that can be used for tokenizing or lexing an input string?

Related Tests: