engineering computer science MCQ #2163

What is the output of `printf('%d', sizeof(void *))`?

engineering computer science MCQ #2163

  1. Question 1

    Q1. What is the output of `printf('%d', sizeof(void *))`?

    • A) 1
    • B) 4
    • C) 8
    • D) Error

    Answer: 4

    Explanation: Size of a void pointer is typically equal to the word size of the system, often 4 bytes on 32-bit systems.