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 codes aft...
Multiple choice

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

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

  1. 2

  2. 1

  3. 0

  4. Garbage value

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

It will print 1 because ' ' is a tab character. ' ' is the escape sequence and C language considers all escape sequence as a single character.

Keep practicing — related questions

  • What will be the output of the following set of code after execution? void main() { printf(“%d %d”,sizeof('...
  • What will be the output of the following set of code after execution? void main() { float m=3.6e38; printf(...
  • What will be the output of the following set of codes after execution? void main() { int m=32769; unsigned ...
  • What will be the output of the following set of codes after execution? void main() { printf(“%d %d %d ”,56,...
  • What will be the output of the following: void main() { register int a; printf("%d",a); }
  • What will be the output of the following question? main() { extern int out; printf(“%d”,out); } int out=100;
  • What will be the output of the following function? main() { int i; printf(%d,scanf(%d,&i)); // value 10 is ...
  • What will be the output of the following function? main() { int a[10]; printf(%d,*a+1-*a+3); }
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy