aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Data Types, Variables & Storage Classes
  • What error will occur while running the following program...
Multiple choice

What error will occur while running the following program? void main() { int i=j+5,j=6; printf(%d %d,i,j); }

  1. Undefined Symbol i

  2. Lvalue required

  3. Undefined symbol j

  4. No error

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

'j' is used before the declaration. Hence, the compiler will give the 'Undefined symbol j' error.

Keep practicing — related questions

  • What error will occur while running the following program? void main() { int const *t=8; printf(%d,++(*t)); }
  • What will be the output of the following program : void main() { int i=5,j=5; i=i++*i++*i++*i++; printf("i=...
  • What will be the output of the following program : void main() { int val=2; val = - --val- val--- --val; pr...
  • What will be the output of the following program : void main() { int a=5,b=6; Printf("%d %d %d",a,b,--a*++b...
  • What type of error will occur while running the following program? void main() { extern int t; t =100; prin...
  • What will be the output of the following program : void main() { printf("%d %d %d",5,!5,25-!25); }
  • void main() { int _; _=100; printf("%d",_); }
  • What will be the output of the following program : void main() { int i=5; printf("%d %d %d %d %d",++i,i++,i...
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