aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming
  • main() { int i=3; printf(Value of i=%d,*(&i)); } Give...
Multiple choice

main() { int i=3; printf(Value of i=%d,*(&i)); }
Give the output of above program.

  1. Value of i=6485

  2. Value of i=3000

  3. Value of i=3

  4. None of these

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

The expression &i gets the address of i, and *(&i) dereferences that address to get the value of i, which is 3.

Keep practicing — related questions

  • Output???? #include int main() { int i=43; printf("%d\n",printf("%d",printf("%d",i))); return 0;}
  • void main() { int i=5; i+=i*=i-=i/i; printf("%d",i); }
  • The output of the following program will be main() { int a = 1, b=2, c=3; printf(“%d”, a+=(a+=3,5,a)); }
  • The following program prints main() { int i = 5; i = (++i) / (i ++); printf(“%d”,i); }
  • What will be the value of i? int i = 1; i = i +2*i ++; printf(“%d”,i);
  • What is the output ? main() { int i=8; printf("%d%d%d%d", i, i++, ++i, i); }
  • What would be the output of the following statement in 'C'? int i=0; do { i=i+3; printf(n i=%d,i); }while(i...
  • What is the output?int i = 3;if (!i) i++; i++;if (i==3) i+=2; i+=2;printf("%d\n", i);
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy