You are not logged in.

#1 2015-09-16 05:06:39

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

Output Program:

C Programming Quizzes C Language Arrays And Strings

Directions:
What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?

Question:
#include
void main()
{
    int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0};
    printf("%u, %u", a+1, &a+1);
}

Option A):
65474, 65488
Option B):
65474, 65476
Option C):
65480, 65488
Option D):
65480, 65496

Correct Answer is Option D):
65480, 65496


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

2015-09-16 05:06:39

Advertisement
Ads By Google

Re: Output Program:



Board footer