engineering computer science MCQ #2141

What is the output of `printf('%d %d', sizeof(int), sizeof(char));`?

engineering computer science MCQ #2141

  1. Question 1

    Q1. What is the output of `printf('%d %d', sizeof(int), sizeof(char));`?

    • A) 4 1
    • B) 2 1
    • C) 4 4
    • D) 2 2

    Answer: 4 1

    Explanation: Typical sizes for int and char are 4 and 1 bytes, respectively.