0 votes 0 votes When we pass an array as an argument to a function, what actually gets passed ? Address of the array Values of the elements of the array Base address of the array Number of elements of the array Programming in C ugcnetcse-june2014-paper2 programming programming-in-c + – makhdoom ghaya asked Jul 1, 2016 retagged Jul 8, 2016 by Arjun makhdoom ghaya 1.5k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 4 votes 4 votes Assuming C/C++, when we pass an array as a function argument, the base address of the array will be passed. Hence,Option(C) Base address of array. LeenSharma answered Jul 1, 2016 selected Jul 1, 2016 by Desert_Warrior LeenSharma comment Share Follow See all 2 Comments See all 2 2 Comments reply Arjun commented Jul 8, 2016 reply Follow Share what's the difference between A and C? 1 votes 1 votes shekhar chauhan commented Jul 11, 2016 reply Follow Share Basic address of the array means the starting address of the array more specifically address of the first element of the array ...option A does not make any sense to me ....there is no such thing as address of the array .address's are for each index value associated with an array if there are one million index's on the array we would have a separate address for each entry that are stored on each index ...we are not going to have address of an array as a whole. 0 votes 0 votes Please log in or register to add a comment.