Log In Register

Units


Sizeof Keyword - Questions and Answers

 

Practice these Sizeof Keyword  under C Programming walk-in interview Questions/ examination questions with best tricks and short cuts with solution. Student (candidate) who want to crack the walk in interview, competitive exams and want to find short cuts and tricks to solve questions on Sizeof Keyword for following purpose.


– Anyone who is wishing to increase their perfect knowledge of Sizeof Keyword of C Programming.
– Anyone who is preparing for aptitude test and increase his in depth aptitude knowledge C Programming specifically Sizeof Keyword .
– Anyone who is preparing for interviews (competitive examinations, govt examinations and bank examinations, off-campus or on campus interviews, walk-in interview and company interviews) having questions on Sizeof Keyword under C Programming.

– Anyone who is preparing for aptitude test or competitive exam or entrance exam.
– Anyone who is preparing for entrance examinations and other competitive examinations.
– All Experienced, Freshers and Students.

Here is list of Questions and Answers covering all key area of  Sizeof Keyword topic of C Programming:

 

1.

Which among the following is never possible in C when members in a structure are same as that in a union?
    //Let P be a structure
    //Let Q be a union

Answer: Option A

Explanation:

2.

What is the output of this C code?

  1.     #include <stdio.h>
  2.     printf("%d", sizeof('a'));

Answer: Option A

Explanation:

3.

Which among the following has the highest precedence?

Answer: Option B

Explanation:

4.

What is the sizeof(char) in a 32-bit C compiler?

Answer: Option B

Explanation:

5.

Which among the following is never possible in C when members are different in a structure and union?
    //Let P be a structure
    //Let Q be a union

Answer: Option D

Explanation:

6.

What type of value does sizeof return?

Answer: Option B

Explanation:

7.

Which of the following is not an operator in C?

Answer: Option D

Explanation:

8.

What is the output of this C code?

  1.     #include <stdio.h>
  2.     union temp
  3.     {
  4.         char a;
  5.         char b;
  6.         int c;
  7.     }t;
  8.     int main()
  9.     {
  10.         printf("%d", sizeof(t));
  11.         return 0;
  12.     }

Answer: Option B

Explanation:

9.

The sizeof(void) in a 32-bit C is_____

Answer: Option C

Explanation:

10.

Size of an array can be evaluated by:
    (Assuming array declaration int a[10];)

Answer: Option D

Explanation: