aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Data Types, Variables and Storage Classes
  • What will be the output of the following set of code afte...
Multiple choice

What will be the output of the following set of code after execution?

void main() { printf(“%d %d”,sizeof('9'),sizeof(567)); }

  1. 1 3

  2. 1 2

  3. 2 2

  4. 2 3

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

sizeof('9') gives 1 because '9' is a character not integer and sizeof(567) gives 2 because 567 is an integer.

Keep practicing — related questions

  • Which of the following types of malicious code is a class of malicious code that detonates when a specified...
  • Which of the following statements is/are not correct regarding yeast? (a) It is a green plant. (b) It repro...
  • Which of the following is correct about the pituitary gland? (a) It is called the master gland. (b) It simu...
  • Which of the following is a stipulation collateral to the main purpose of the contract?
  • Which of the following statements is/are correct? P: s orbitals are spherical in shape. Q: p orbitals are d...
  • Which of the following RAID level refers striped set with distributed parity and block-interleaved distribu...
  • Which of the following became the first state government in the country to announce the setting up of an Is...
  • Which of the following is a set of organisms with bioherbicide property?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Output Evaluation (1721 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy