Re: [algogeeks] A SIMPLE C++ PROGRAM.

2011-05-01 Thread Amit Jaspal
This is compiler dependent..and not a portable way of writing code On Sat, Apr 30, 2011 at 12:11 PM, Ashish Modi wrote: > For such type of questions, the best method is to draw a parse > tree according to precedence and evaluate the tree. This is how it is > evaluated at compiler le

Re: [algogeeks] If anyone have this book please mail me Thanks in advance

2011-05-01 Thread Varun Nagpal
Please refrain from sharing such links and engaging in piracy. I kindly request the admin of this forum to delete all such posts and to warn the users on the forum for possible barring in case they are found to use this forum for piracy and malpractices. On Sat, Apr 30, 2011 at 12:09 PM, Charles

Re: [algogeeks] Re: Do you Think Allocating memory to 2D Array is easy ???

2011-05-01 Thread Sathaiah Dontula
pptr = (char **) malloc (sizeof(char *) * ROW_MAX); ptr = (char *) malloc(sizeof(char) * row * col); for (index = 0; index < ROW_MAX; index++) { pptr[index] = ptr+index; ptr = ptr + ROW_MAX; } How about doing like above ?, you want only with one malloc ? Thanks, Sathaiah O

[algogeeks] A SIMPLE QUESTION

2011-05-01 Thread tillegomezz
I have "n" boxes each with "m" candys, I want distributed these candys among "k" students what is the best way for distribute them such that 1. All students get equal number of candies. 2. All the candies which a student get must be from a single box only. -- You received this message because

Re: [algogeeks] A SIMPLE C++ PROGRAM.

2011-05-01 Thread Saurabh Koar
The above code is purely compiler dependent.Google Sequence Points. -- 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+unsu

Re: [algogeeks] A SIMPLE C++ PROGRAM.

2011-05-01 Thread Naveen Agrawal
Well, It depends on the compiler you are using. This code with multiple increments and decrements in one expression, is *invalid* code per ISO 14882:2003 paragraph 5.4, As with any invalid code, the compilers can do print any value, if they choose to let this compile. It's also invalid C per ISO 9

Re: [algogeeks] Bubble-sort with Hungarian ("Csángó") folk dance

2011-05-01 Thread Charles Turner
On 01/05/2011 19:42, Arun Bala G wrote: Guys, Check this out Top of Form Bottom of Form *Bubble-sort with Hungarian ("Csángó") folk dance * http://youtu.be/lyZQPjUT5B4 That made my day! Thank you for sharing :D. Charles -- You received this message because you are subscribed to the Go

[algogeeks] Bubble-sort with Hungarian ("Csángó") folk dance

2011-05-01 Thread Arun Bala G
Guys, Check this out Top of Form Bottom of Form Bubble-sort with Hungarian ("Csángó") folk dance http://youtu.be/lyZQPjUT5B4 -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegrou

Re: [algogeeks] A SIMPLE C++ PROGRAM.

2011-05-01 Thread hary rathor
x=5 y=10 -- 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 grou

Re: [algogeeks] Re: Do you Think Allocating memory to 2D Array is easy ???

2011-05-01 Thread hary rathor
@harshit this not correct way . you will get segmentation fault while accessing the element .. you can see in book pointer in c -- 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. T

Re: [algogeeks] problem regarding gcc installation

2011-05-01 Thread hary rathor
type on terminal " sudo apt-get install gcc" you will get latest gcc automatically -- 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] Online Jobs for students

2011-05-01 Thread Geo News
Online Jobs for students Online Typing Work from Home No Age Limit | Easy Application http://bit.ly/AsianEdu 2 years Masters Program Gulf Medical University UAE http://bit.ly/AsianEdu Over 5,000 jobs available in Australia. Visa assistance available. http://bit.ly/AsianEdu

[algogeeks] Popular Puzzle of the week

2011-05-01 Thread Lavesh Rawat
Hi, Based on most comments, The popular puzzle of the last week is * http://dailybrainteaser.blogspot.com/2011/04/humor-quiz-25april.html?lavesh=lavesh * *Please subscribe and follow this blog to show your liking to the blog.* -- "Never explain yourself. Your friends don’