What Will Be The Output Of The Following C Codep Pre Langcsharp #802
What will be the output of the following C# code?</p> <pre><code class="language-csharp" line="1"> class Program { static void Main(string[] args) { int ch; HttpWebRequest req = (HttpWebRequest) WebRequest.Create("http://www.McGraw-Hill.com"); HttpWebResponse resp = (HttpWebResponse) req.GetResponse(); Stream istrm = resp.GetResponseStream(); for (int i = 1 ; ;i++) { ch = istrm.ReadByte(); if (ch == -1) break; Console.Write((char)ch); if ((i % 400) == 0) { Console.Write("\nPress Enter."); Console.ReadLine(); } } resp.Close(); } } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Namespaces, Preprocessors and Networking - URI Class - Quiz No.1.