[algogeeks] Concept of Pointer

2011-08-22 Thread MANNU
main()
{
char ch[]=ABCD;
char *s;
s=ch;
printf(%c,*s++);
printf(%c,*++s);
printf(%c,++*s);
}

Can anyone plz tell me the concept behind output??

-- 
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] Samsung India electronics pvt. ltd

2011-08-08 Thread MANNU
SISO in our college have 50 Apti questions (1 hr) and 20 tech questions, all
on c (in 30 mins).

Manish Kumar (Placed In SISO)
NIT DGP
FINAL YEAR.

-- 
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] Small Doubt

2011-07-28 Thread MANNU
@Prem: Each program is provided with a pool of address, which consist
of heap, stack etc.
 My question is that if I write an address 0xff which is
not provided to that program then
 what will be the output?

On 7/28/11, Prem Krishna Chettri hprem...@gmail.com wrote:
 First of all this is a good Question as this is use regularly in Device
 Driver kind of Development Mode and hence there is no question of Not
 Possible.

 So how to Do it is Question. which is as follows :-

 Point your pointer to mem add that U want and Now this Mem Add is HEX guys
 (Not 4 or 5 or any base 10 val) , so put it as 0x(whatever U want).

 Do whatever  U want to do on that address using that pointer now.

 The Code above is correct but the implementation is wrong so...


 #includestdio.h
 int main()
 {
int *p = (int *)0xff;
   // *p = 4; /** Dude can U put hex val here .. Oh its already assigned
 to 0xff..  **/ Now print it coutpendl;
return 0;
 }

 Regards
  Prem

 On Thu, Jul 28, 2011 at 10:44 AM, Tyler Durden abhishek.khattr...@gmail.com
 wrote:

 @Ankita: So when is 4000 memory address is allotted?? I mean what use does
 int *p = 4000 serve here??

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/algogeeks/-/0OU6tMQudMoJ.

 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.


 --
 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.



-- 
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] partitioning the array

2011-05-07 Thread MANNU
Steps to follow:
1.Sort the given array.
2.Partition each consecutive element in 2 arrays i.e. if 1st element is in
1st array then second will be 2nd array and 3rd in 1st.


But for equal no. of elements you have to check for no. of elements in the
array. If they are odd either insert a dummy elemnt
of value 0 else output an error message (whatever you feel better).

-- 
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: If any one have algorithms for interviews by adnan aziz ebook... Please mail ...

2011-05-04 Thread MANNU
kindly mail me also.. at manishkr2...@gmail.com

-- 
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] A SIMPLE C++ PROGRAM.

2011-04-30 Thread MANNU
Thanks for help.

-- 
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.



[algogeeks] A SIMPLE C++ PROGRAM.

2011-04-29 Thread MANNU
*Can anyone please explain me the output of this program:*

int x=1;
int y=x++ + ++x + ++x + x++;
couty;
coutx;

-- 
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.



[algogeeks] LINKERS AND LOADERS BOOK

2011-04-23 Thread MANNU
Can anyone please refer me a book or notes of linkers and loaders which must
contain atleast these topics:
1.ABSOLUTE LOADER
2.BOOTSTRAP LOADER
3.LINKING LOADER
4.DYNAMIC LINKING


THANKS AND REGARD
MANISH KUMAR
THIRD YEAR B.TECH(I.T.)
N.I.T. DURGAPUR

-- 
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.



[algogeeks] Constructor and Destructor

2011-04-03 Thread MANNU
Write a program to create an array of strings. Read and display the strings
using constructor and destructor. Do not use member function.

-- 
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: Array , Number Missing or Duplicate ..

2011-03-01 Thread MANNU
@Dave: Can you please explain it? I am not getting you.

-- 
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: printing without loop

2011-03-01 Thread MANNU
@himanshu: you are using recursive call. And in problem it is mentioned that
you can't use recursion.

-- 
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: Array , Number Missing or Duplicate ..

2011-02-28 Thread MANNU
We can use count sort for this. Its intermediate step just tell us the
frequency of each number.
and its complexity is just O(n).

-- 
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.