aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Expressions and Switch Statements
  • What is the output of the given C code? void ret(int a, i...
Multiple choice

What is the output of the given C code?

void ret(int a, int b)
{
double res = pow(a,b);
printf(\\\\\\\\n%d,res);
}
int main()
{
int i = (1048576>>8>>3>>4>>3);
int y = 1024>>4>>3;
ret(i,y);
printf(\\\\\\\\n%d,i^y);
return 0;
}

  1. 0 12

  2. 65536.0 16

  3. 25536.012

  4. 25536.012

  5. Compiler error

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

This is correct. 

Keep practicing — related questions

  • What will be the output of the following C code? int T; static T= 8; extern T; void main() { printf(%d,T); }
  • What will be the output of the following C code? void main() { int fact=1,i; clrscr(); for(i=2;i<=8;i++) fa...
  • What will be the output of the code snippet? int funct(a,b) int a,b; { return a*b; } void main() { int i=13...
  • What will be the output of the following C code? void main() { int t=70,c=14,d; d=t/**//c; printf(%d,d); }
  • What will be the output of following C code? void main() { int t,*pt; register int y,*py; pt=&t; py=&y; t=1...
  • What will be the output of the following code snippet? main() { int a=1,b=1; clrscr(); a=++a||++b&&++a; pri...
  • 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 C code? void main() { int T='T'; printf(%c,T+6); }
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy