You are not logged in.

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

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

Output Program:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … nd-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


Failure is the first step towards seccess.

2015-09-16 05:06:51

Advertisement
Ads By Google

Re: Output Program:



Board footer