yatish


{ City } banglore
< Country > india
* Profession * student
User No # 46219
Total Questions Posted # 1
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 1329

Users Marked my Answers as Correct # 5
Users Marked my Answers as Wrong # 5
Questions / { yatish }
Questions Answers Category Views Company eMail

hi friends hey i need a help. i m doin my 6thsem(B.E) i need to do a project on opengl(graphics). so can u please suggest me some good topics for my project.M NOT GETTIN ANY IDEA OF WAT TO DO. PLEASE INFORM ME as soon as possible. it shud be simple and innovative.

Everything Else AllOther 1329




Answers / { yatish }

Question { TCS, 28673 }

given the piece of code
int a[50];
int *pa;
pa=a;
to access the 6th element of the array which of the
following is incorrect?
a.*(a+5)
b.a[5]
c.pa[5]
d.*(*pa + 5)


Answer

The wrong answer is
d> *(*pa+5)
here value pointed to by pa is accessed and added 5 to it
then trying to print the value at that address, which gives
us an warning with some garbage value.

Is This Answer Correct ?    4 Yes 1 No

Question { Wipro, 10320 }

int main()
{
int x = (2,3,4);
int y = 9,10,11;
printf("%d %d",x,y);
}
what would be the output?


Answer

x=4 and y=9

Is This Answer Correct ?    1 Yes 4 No