+ 7
what is a output
void main() { int x; cin>>x; cout<<x; }
3 Réponses
+ 5
depends on what you put on the console. cin = Console Input, so you have to input something ans it will be saved to variable x. then it will be outputted by Cout, console output. Depends on what you have put tho
+ 2
You'd probably get a compilation error since void isn't a valid data type for the main() function. You also don't have return 0.
+ 2
void main() is the TurboC++ standard, which is much old today!
And the output will be the same integer that has been input! (Only when the code standards are corrected)