aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming - 2
  • Consider the following declaration. int a = 5, *b = &...
Multiple choice

Consider the following declaration. int a = 5, *b = &a; printf(“%d”, a*b);The above program prints

  1. 25

  2. garbage

  3. 5 x address of b

  4. error message

Reveal answer Fill a bubble to check yourself
D Correct answer

Keep practicing — related questions

  • Consider the declaration. int a = 5, *b = &a; printf(“%d”, a**b); prints
  • void main() { int a= 100; void *j= &a; int *k= j; printf("%u", *k); }
  • what is the output? int a = 400; void main() { int b; b=(400 * 400)/ a ; printf("%d",b); }
  • What will be the output of the following: void main() { register int a; printf("%d",a); }
  • 1)void main() { int const *p = 5; printf(“%d”,++(*p)); }
  • The following program main() {*int i=100; int M(); printf(“%d“,(*M)(i));} int M(x)int x{printf(“%d”,++x);}
  • main() { extern i; printf("%d",i); { int i=20; printf("%d",i); } }
  • What does the following code do? void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunct...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy