in qyes no 9  I think none of options are correct

On Sun, Aug 7, 2011 at 8:25 AM, ankit sambyal <[email protected]>wrote:

> Can anybdy explain the following questions :
> (5)  Find the output
> int arr[2][3]={{1,2,3},{4,5,6}};
> int (*ptr)[3]=&a[0];
> printf("(%d,%d)",(*ptr)[1],(*ptr)[2]);
> ptr+=1;
> printf("(%d,%d)",(*ptr)[1],(*ptr)[2]);
>
>    Will this program compile properly or will end in segmentation
> fault ??
>
>
>  (9) Given a inorder traversal eg 1 2 3 4 5 6 7 8 9 , Check which of
> the following preorder traversal will it return .
>    a.    1 6 3 2 7 8 4 9
>    b.    6 7 3 8 1 9 2 7
>    c,    2 4 6 8 1 3 5 7
>    d.    1 3 5 7 2 4 6 8
>
> --
>  You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to