You are not logged in.

#1 2015-09-12 06:38:00

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

Syntax Error:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … ge-Pointer

Directions:
void main()
{
   int i=10;  /* assume address of i is 0x1234ABCD */
   int *ip=&i;
   int **ipp=&&i;
   printf("%x,%x,%x", &i, ip, *ipp); 
}

Question:
Find the output of the following program.

Option A):
0x1234ABCD, 0x1234ABCD, 0x1234ABCD
Option B):
Syntax error
Option C):
0x1234ABCD, 10, 10
Option D):
0x1234ABCD, 0x1234ABCD, 10

Correct Answer is Option B):
Syntax error


Failure is the first step towards seccess.

2015-09-12 06:38:00

Advertisement
Ads By Google

Re: Syntax Error:



Board footer