1.  Which is an indirection operator among the following ?


&
*
->
.


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  Pick the correct answers.If x is an one dimensional array, then


&x [i] is same as x + i - 1
* (x + i ) is same as * (&x [i] )
* (x + i) is same as x[i]
both (b) & (c)


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  Find the output of the following program.
void main()
{
int i=10; /* assume address of i is 0x1234ABCD */
int *ip=&i;
int **ipp=&&i;
printf(‘’%x,%x,%x’’, &i, ip, *ipp);
}


0x1234ABCD, 0x1234ABCD, 10
0x1234ABCD, 0x1234ABCD, 0x1234ABCD
0x1234ABCD, 10, 10
Syntax error


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  What will be printed after compiling and running the following code ?
main()
{
char *p;
printf(‘’%d %d’’,sizeof(*p), sizeof(p));
}


1 1
1 2
2 1
2 2


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  Given the following code fragment:
main()
{
int row[20],i,sum=0;
int *p=row;
for(i=0;i<20;i++)
*(p+i)=1;
for(i=0;i<20;i+=sizeof(int))
sum+=*(p+i);
printf(‘’sum=%d\n’’,sum);
}
What will be the result of execution ?


10
40
60
190


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report