@ Nathiya: My statement was a question to whether the function is working or 
not. I know how -2 in converted to -1 :P

@ All: The question is actually to tell whether the function mentioned will 
work for rounding off or not.
The answer is half the times. It doesn't work for negative numbers.

@ Ankur Khurana:
I didn't mark it due to the type mismatch in *return*. Very doubtful if you 
haven't tried the same thing anywhere before.

@ John_geek:
The question is actually a good one. I wrote linked list, but I am sure 
there is a better data structure.
One of my friends suggested to use a variable array. This way calculations 
can be fast. According to my friend, you should know how to use realloc() so 
that, in case of varying length of numbers, the size can also be adjusted.
I think there is not a specific answer to this question. You have to explain 
in argument, why you chose the data structure perfectly.

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

Reply via email to