Question:
Does mentioning the array name gives the base address in all the integers?
Answer:
Source: CoolInterview.com
Yes, array name always returns its base address. Source: CoolInterview.com
Answered by: Suchita | Date: 5/20/2008
| Contact Suchita
Yes,Base address of any array will always be an integer. Since addresses in memory are always integers. Source: CoolInterview.com
Answered by: Sampda | Date: 6/6/2008
| Contact Sampda
Yes, the name of the array always stores the starting address of the array. Hence if we print the name of the array, it will print the base address. But also remember, that address while printed using printf() function should use %u and not %d, as addresses are not integers, but unsigned integers. Hence %u. Source: CoolInterview.com
Answered by: Sivakumar S K | Date: 8/19/2010
| Contact Sivakumar S K
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|