it has variable defined
On Sun, Feb 6, 2011 at 7:47 AM, Venki venkatcollect...@gmail.com wrote:
Hi Gajendra,
See the following link
http://geeksforgeeks.org/forum/topic/huwaei-interview-question-for-software-engineerdeveloper-2-5-years-about-cpuzzles#post-18725
On Feb 5, 7:28 pm, Gajendra
using this macro
size(X) ((X*)0+1)
if we give size(int) it ll return 4.
size(double) gives 8.
--
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
Hi
Try following code
Suppose we need to find size of variable *obj*
int size = (char*)(obj +1 ) - (char*)(obj);
*
*Thanks Regards,
Ricky
On Mon, Feb 7, 2011 at 12:19 AM, albert theboss alberttheb...@gmail.comwrote:
using this macro
size(X) ((X*)0+1)
if we give size(int) it ll
@rajiv:i guess obj is a pointer here
On Mon, Feb 7, 2011 at 10:51 AM, Rajiv Podar rajeevpo...@gmail.com wrote:
Hi
Try following code
Suppose we need to find size of variable *obj*
int size = (char*)(obj +1 ) - (char*)(obj);
*
*Thanks Regards,
Ricky
On Mon, Feb 7, 2011 at
@jagan: that's true obj is a pointer to the data type for which size
need to be calculated.
On Feb 7, 10:38 am, jagannath prasad das jpdasi...@gmail.com wrote:
@rajiv:i guess obj is a pointer here
On Mon, Feb 7, 2011 at 10:51 AM, Rajiv Podar rajeevpo...@gmail.com wrote:
Hi
Hi Gajendra,
See the following link
http://geeksforgeeks.org/forum/topic/huwaei-interview-question-for-software-engineerdeveloper-2-5-years-about-cpuzzles#post-18725
On Feb 5, 7:28 pm, Gajendra Dadheech gajju3...@gmail.com wrote:
Calculate size of a data type without using sizeof and without
@Monty: Use an alternating across and down algorithm:
Set the current row = the first row
While current row is not the last row
Look across the current row for the first false
Look down the column containing that first false for a true
If no such row is found, break. // current row is
@Dave nice algorithm
On Fri, Dec 24, 2010 at 6:59 PM, Dave dave_and_da...@juno.com wrote:
@Monty: Use an alternating across and down algorithm:
Set the current row = the first row
While current row is not the last row
Look across the current row for the first false
Look down the