Dear Gurus
i came across some questions please help me to understand those questions:

1>
int x;
while(x<100)
{
cout<<x;
x++;
}

2>
void afunction()
{
if(1)
{
break;
a_function();
cout<<"Err";
}
}

3>
void afunction(int *x)
{
x=new int;
*x=12;
}
int main()
{
int v=10;
afunction(&v);
cout<<v;
}

4>
Would you rather wait for the results of a quicksort, a linear search, or a bubble sort on a 200000 element array?
Quicksort
Linear Search
Bubble Sort

5> what is difference between endl and /n

6> what is the order in which the following is executed
!(1 &&0 || !1)
!(1&&1||1&&0)

i think answer should be

1>
0 1 2 upto 99

2>
exit from if block

3>
12

4>
no guesses

5>no difference
6>??

the answers which the site from where i took these question are different,please help me to understand the answer
thanks in advance
bye
vishal sharma