Re: [algogeeks] C++ MCQs

2011-02-12 Thread ramkumar santhanam
think MCQ stands for multiple choice questions

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



Re: [algogeeks] Re: amazon c questn

2011-02-12 Thread ramkumar santhanam
main()
{
char *p,*q;
strcpy(p,"amazon");
strcpy(q,"hyd");
strcat(p,q);
printf("%s"p);
}

this snippet also execute to result with no errors.
but it will have some problem with the internal memory, that it may
overwrite the existing space.

so, the given code doesn't have any error in it as the memory has been
allocated.
the extra space allocated may be the prob with amazon. lol

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



Re: [algogeeks] interview quest..

2011-02-06 Thread ramkumar santhanam
use stack.

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



Re: [algogeeks] Re: Adobe question

2010-11-29 Thread ramkumar santhanam
there s only one array.

xor method works.

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



Re: [algogeeks] Re: please explain the output

2010-11-29 Thread ramkumar santhanam
answer according to tc compiler may be 19.

bracketed expressions occur first.

arithmetic expressions from left to right

1 (a++) = 5; but a=6;

2 (++a) = 6+1 = 7; a=7;

3 a + 5 + 7 = 7+5+7 =19.

but the result is compiler dependent

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