Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336
Does this mentioning array name gives the base address in all the contexts? ?->(Show Answer!)
Question Set

1. Does this mentioning array name gives the base address in all the contexts?



Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 01 Jun 2017 06.00 pm
    No, Mentioning the array name in C or C++ gives the base address in all contexts except one. Syntactically, the compiler treats the array name as a pointer to the first element. You can reference elements using array syntax, a[n], or using pointer syntax, *(a+n), and you can even mix the usages within an expression. When you pass an array name as a function argument, you are passing the "value of the pointer", which means that you are implicitly passing the array by reference, even though all parameters in functions are "call by value".
Show Similar Question And Answers
QA->“After hearing him we feel how foolish it is to send missionaries to this learned nation”-New York Herald in 1893 made this remark while mentioning about?....
QA->Name the campaign that was first announced by Prime Minister Narendra Modi in his Independence Day address from the Red Fort in 2015?....
QA->By which name, the dying star that have expanded greatly from its original size and gives off red light are known?....
QA->’IP Address’ എന്നാലെന്ത്? ....
QA->a lyric poem; often in the form of address is known as?....
MCQ->Which of the following statements mentioning the name of the array begins DOES NOT yield the base address? 1: When array name is used with the sizeof operator. 2: When array name is operand of the & operator. 3: When array name is passed to scanf() function. 4: When array name is passed to printf() function.....
MCQ->Does this mentioning array name gives the base address in all the contexts?....
MCQ->Which of the following statements are correct about the C#.NET code snippet given below? int[] a = {11, 3, 5, 9, 4}; The array elements are created on the stack. Refernce a is created on the stack. The array elements are created on the heap. On declaring the array a new array class is created which is derived from System.Array Class. Whether the array elements are stored in the stack or heap depends upon the size of the array.....
MCQ->Consider the following statements (L is the length of array between centres of end antennas and A is wave-length)Width of major lobe between nulls of broad side array and end fire array are different.Directive gain of broadside array and end fire array are different.Directive gain of broadside array is 4 Which of the above statements are correct?....
MCQ->Consider the following statements about an array in Pascal An array has a fixed predetermined number of components.Any component of an array can be accessed using an index.An array variable name refers to a group of quantities by a single name.When array variables are used an appropriate declaration is required. Which of the above are correct?....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution