aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Language
  • Find out the output of the given program. ```c #include #...
Multiple choice

Find out the output of the given program.

#include 
#include 
main()
{
    int s = 25, d;
    d = s % 10;
    if (d == 5) {
        s = s / 10;
        printf("\\nresult is=%d%d", s * s++, d * d);
    }
    else {
        printf("\\n invalid number");
    }
    getch();
}

  1. Invalid number

  2. 425

  3. 625

  4. 525

  5. Compiler error

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

The answer would be 425. 

Keep practicing — related questions

  • Find out the output of the given program or find the error if any. #include<stdio.h> #include<conio.h> int ...
  • Find out the output of the given program in binary language. #include #include int main() { int a = 7, b = ...
  • Find the output of this program. main() { int i=5; printf(“%d”,i=++i ==6); }
  • Find the output of this program. main() { int i=5; printf(“%d”,i=++i ==6); }
  • Find the output of the above program or error, if any. #include<stdio.h> #include<conio.h> int num(int); in...
  • Find the output of this program. main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
  • Find the output of this program. main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
  • Find the output of the above program or error, if any. #include<stdio.h> #include<conio.h> int main() { int...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy