You are not logged in.

#1 2015-09-12 06:37:57

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

Syntax Error:

C Programming Quizzes C Language 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


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

2015-09-12 06:37:57

Advertisement
Ads By Google

Re: Syntax Error:



Board footer