You are not logged in.

#1 2015-09-16 05:10:10

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

Array Address:

C Programming Quizzes C Language Arrays And Strings

Directions:
What will be the output of the program if the array begins at address 65486?

Question:
#include
void main()
{
    int arr[] = {12, 14, 15, 23, 45};
    printf("%u, %u", arr, &arr);
}

Option A):
65486, 65487
Option B):
65486, 65488
Option C):
65486, 65486
Option D):
65486, 65490

Correct Answer is Option C):
65486, 65486


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-16 05:10:10

Advertisement
Ads By Google

Re: Array Address:



Board footer