aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C and C++ Programming Fundamentals
  • What will be output if you will execute following c code?...
Multiple choice technology programming languages

What will be output if you will execute following c code? #include #include void main() {     int a[]={0,1,2,3,4,5,6,7,8,9,10};     int i=0,num;     num=a[++i+a[++i]]+a[++i];     printf("%d",num); }

  1. 6

  2. 7

  3. 8

  4. 9

  5. CompilationError

Reveal answer Fill a bubble to check yourself
D Correct answer

Keep practicing — related questions

  • What will be the output of the following code segment? #include #include void main() { int a[]={0,1,2,3,4,5...
  • What will be output if you will Execute following c code? #include int main() { int num,a=5; num=-a--; prin...
  • What will be the output of the following code? #include<stdio.h> int main() { int num,a=5; num=-a--; printf...
  • What will be the output of following code segment? #include int main() { int num,a=5; num=-a--; printf("%d ...
  • What will be output if you will Execute following c code?
  • What will be output if you will Execute following code? #include #include void main() { char c=-'a'; printf...
  • What will be the output of the following function? # include <stdio.h> void main() { int a[5] = {5,1,15,20,...
  • What will be output if you will execute following c code?
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