Forum: C Dec 29th, 2008 |
| Replies: 3 Views: 420 If by ``"c" programme'' you mean something that is compliant with one or both of the C standards, then there's only one answer: it's impossible. Your not wanting such an answer does not make it... |
Forum: C Oct 3rd, 2008 |
| Replies: 8 Views: 2,065 Because the %s format specifier tells printf() and related function that the corresponding argument is a pointer to char and to keep printing chars until it finds a zero.
When an array is passed... |
Forum: C Sep 13th, 2008 |
| Replies: 4 Views: 1,421 1) First, represent a polynomial (of the form c_0 + c_1*x + c_2*x^2 + .... c_n*x^n) is represented by an array with elements (c_0, c_1, c_2, c_3, .... c_n).
2) Work out how to multiply two... |
Forum: C Sep 11th, 2008 |
| Replies: 4 Views: 468 Firstly, your variables a, b, and c are uninitialised: their value before entering the loop could be anything.
As to your loop, it doesn't really make sense.
You only need two variables. An... |