+ 2
Why is this code compiling without errors?
#include <iostream> using namespace std; int main() { char arr[]="SUN"; cout<<arr[1]; } The return statement is missing and still the output is 'U'
7 Antworten
+ 7
Related question :
https://www.sololearn.com/Discuss/1792988/?ref=app
+ 2
Avinash Avi if you find any of such quiz questions, be sure to forward them, along side this particular question to sololearn via email at info@sololearn.com
+ 2
Output is redirected to the console using cout output stream
+ 2
Jamie💐
Hey, there's no reason for you to be sorry.
Thank you for the clarification.
+ 1
Jamie💐
Thank you for answering but your answer is not very clear to me. I do this same thing on PC and it returns an error. If this is compiler dependant then questions based on this concept must be dropped from the Quiz Factory.
+ 1
Yeah, I will. Thanks for the help D'Lite
+ 1
Hi