aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Expressions and Switch Statements
  • What is the output of the given C code? int main(){printf...
Multiple choice

What is the output of the given C code?

int main()
{
printf( "%lf",round(hypot(4+1,9-1)));
return 0;
}

  1. 13

  2. 9

  3. 12

  4. 16

  5. 22

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

This is the correct answer. 

Keep practicing — related questions

  • What is the output of the given C code? int main(){bool i=1;switch(round(hypot(114,123))) // Line 1{default...
  • What is the output of the given C program? int main() {int i= (int)round(hypot(114,123));switch(i) // Line ...
  • What is the output of the given C code? int main(){boolean i=1;switch(round(hypot(114,123))) // Line 1{defa...
  • What is the output of the following 'C' program? main() { printf(“ %x”,-1 >>4); }
  • What will be the output of the following set of codes after execution? void main() { printf(“%d %d %d ”,56,...
  • What is the output of the given code? int main() { int x = 24; int y = 42; int z = 37; int a = 22; printf(%...
  • What will be the output of the following C code? void main() { char ch=321; printf(%d %c,ch,ch); }
  • What is the output of the given code? int main() { printf("%d\\n",pow(128>>3>>2>>1,3)); }
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy