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(“%c %d”,'C','C'); }

  1. C C

  2. 67 67

  3. C Garbage Value

  4. C 67

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

%c specifier prints C because 'C' is a character. But %d specifier prints 67 (ASCII value of C).

Keep practicing — related questions

  • 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 set of code after execution? void main() { float m=3.6e38; printf(...
  • 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() { printf(“ABC +CDE”); }
  • 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: void main() { register int a; printf("%d",a); }
  • What will be the output of the following function? main() { int i; printf(%d,scanf(%d,&i)); // value 10 is ...
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