aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Data Types, Variables & Storage Classes
  • What will be the output of the following C code? void mai...
Multiple choice

What will be the output of the following C code? void main() { int t=70,c=14,d; d=t/**//c; printf(%d,d); }

  1. 4

  2. 5

  3. 6

  4. 3

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

Here '/**/' is the comment and is the simple statement like d = t/c. Hence, it gives the output 5.

Keep practicing — related questions

  • What will be the output of the following C code? void main() { int T='T'; printf(%c,T+6); }
  • What will be the output of the following C code? void main() { char ch=321; printf(%d %c,ch,ch); }
  • What will be the output of the following: void main() { int i; for(i=1;i<=4;i++) { printf("%d",i); continue...
  • 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?? int main(int c) c=1; while(1); c++; printf("%d",++c); return 0; }
  • What is the output of the following code? #include void main() { int a=0,b=0; a = (b = 75) + 9; printf("\n%...
  • What would be the output of the following? void main() { int a=10,b; b=a++ + ++a; printf("%d %d %d %d",b,a+...
  • ++ void main() { int i = 4, x; x = ++i + ++i + ++i; printf("%d", x); } What will be the output of the above...
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