Forum: C Mar 1st, 2006 |
| Replies: 8 Views: 3,474 I did not understand that if the size of the buf variable is 3 then after getting input "y" and "\n" how does stdin terminate the coming input i.e. what would be buf[2]??
char buf[3];... |
Forum: C Feb 17th, 2006 |
| Replies: 1 Views: 20,656 I would like to know the exact difference between calloc and which is more useful?? Though calloc allocates memory in the form of blocks and malloc in a single block , do they both allocate memory... |
Forum: C Dec 29th, 2005 |
| Replies: 9 Views: 62,956 |
Forum: C Dec 27th, 2005 |
| Replies: 9 Views: 62,956 I would like to know what is the difference betn
getchar(),getch(), and getche() functions and which should be used in which conditions.
Thanks,
comwizz. :confused: |
Forum: C Dec 17th, 2005 |
| Replies: 5 Views: 1,349 Even if we evaluate from the right for j=1 the expression will be evaluated like 1 + 3 + 3 and will still turn out to be 7. Do you mean that theres no conventional way of how to evaluate this... |
Forum: C Dec 15th, 2005 |
| Replies: 5 Views: 1,349 I am having this problem with precedence of operators. Its with the increment and decrement operators.
int i,j=1;
i=(j++)+(++j)+(j++);
this evaluates to 6 instead of 7 . Why does this happen.... |
Forum: C Nov 18th, 2005 |
| Replies: 0 Views: 4,047 Heres a precise and short way to permute any word without pointers |
Forum: C Nov 18th, 2005 |
| Replies: 4 Views: 4,392 I want to run this program in C where I can compute 2^(3.5).Is this possible in C? |
Forum: C Nov 18th, 2005 |
| Replies: 4 Views: 4,392 Hi everyone,
I am having this problem to define a function which raises a float y eg 3.5 which is not a whole number to the base x.
Heres the code which gives domain error as function pow takes... |