Home / MCQ Bank / Computer
Computer Pointer Difficulty: Medium

Comment on the output of the following C code. #include <stdio.h> int main() { char *str = "This" //Line 1 char *ptr = "Program\n"; //Line 2 str = ptr; //Line 3 printf("%s, %s\n", str, ptr); //Line 4 }

Select the correct option to test your answer:

More Computer Questions

What is the limit of character storage for chrome 23.0 in localStorage? What will be the output of the following C# code snippet? class Program { static void Main(string[] args) { int[] nums = { 1 }; var posNums = from n in nums select Math.Pow(4 ,3); Console.Write("The values in nums: "); foreach (int i in posNums) Console.Write(i + " "); Console.WriteLine(); Console.ReadLine(); } } ...... is a new windows feature that offers a number of methods for searching for a file or folder? Which of the following can be budgeted in tally Which 8-bit chip was used in many of Tandy's TRS-80 computers?