Please give its output and explain this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

Please give its output and explain this code?

Please give its output and explain this code? I got its output 21 on turboC 7. https://code.sololearn.com/c858C83xLY16/

5th Oct 2020, 5:46 AM
Prathamesh Mehar
3 Answers
+ 5
Prathamesh Mehar let's look at the code itself not the link so we can get a better view and understaning https://code.sololearn.com/c858C83xLY16/?ref=app Please give its output and explain this code? I got its output 21 on turboC 7.
6th Oct 2020, 1:48 AM
BroFar
BroFar - avatar
+ 5
Prathamesh Mehar this won't work here and it is an old library for c not cpp #include <conio.h> does not work in cpp so you can't use clrscr();
6th Oct 2020, 2:06 AM
BroFar
BroFar - avatar
+ 4
The output might be compiler dependant because it results in undefined behavior. https://www.sololearn.com/discuss/99141/?ref=app
5th Oct 2020, 5:56 AM
Kevin ★