Multiple choice

Find out the output of the given program or find the error if any. #include<stdio.h> #include<conio.h> int main() { int s=25,d; d=s%10; if(d==5) { s=s/10; printf( result is=%d%d,s*s++,d*d); } else { printf( invalid number); } getch(); }

  1. Invalid number

  2. Result is 425

  3. Result is 625

  4. Result is 525

  5. Error in the program

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

The answer would be 425. The program will firstly find 25%10 which comes out to be 5. So if(d==5) becomes true, then 25/10=2 will be stored in s. And s*s++ will give the result 6 and d*d gives the result 25. So, 625 will get printed.