Forum: C 14 Days Ago |
| Replies: 8 Views: 471 >you can't use variables to declare an array.
C99 (http://en.wikipedia.org/wiki/Variable-length_array) support variable length array. A variable length array, which is a C99 feature, is an array... |
Forum: C 17 Days Ago |
| Replies: 9 Views: 343 You are a bit lazy. I recommend code::blocks (http://sourceforge.net/projects/codeblocks/files/Binaries/8.02/codeblocks-8.02mingw-setup.exe/download). |
Forum: C 30 Days Ago |
| Replies: 2 Views: 313 I think probably you don't understand what an enum (http://publications.gbdirect.co.uk/c_book/chapter6/enums.html) is. You can think of it as a sort of compile time #define. Take a look at this... |
Forum: C 30 Days Ago |
| Replies: 6 Views: 557 Hi,
Take a look at this article - http://linuxgazette.net/111/ramankutty.html |
Forum: C 32 Days Ago |
| Replies: 5 Views: 491 In C language, char (http://en.wikipedia.org/wiki/Primitive_data_type#Characters_and_strings)value is stored in 1 byte. A char type may contain a single letter, digit, control character or special... |
Forum: C Sep 15th, 2009 |
| Replies: 16 Views: 695 ubi_ct83: this is the example of malloc cast isnt it?
Read these threads,
http://cboard.cprogramming.com/faq-board/25799-faq-casting-malloc.html
... |
Forum: C Sep 11th, 2009 |
| Replies: 6 Views: 618 Returning an array as a whole is not possible in c-language. However you may use one of the following method:
1. Store an array within a structure and then return the structure.
2. Dynamically... |
Forum: C Sep 4th, 2009 |
| Replies: 8 Views: 394 furqankhyraj,
Why don't you go get a read,
1. announcement - How to post your problems? (http://www.daniweb.com/forums/announcement118-3.html)
2. Should I used void main() or int main()?... |
Forum: C Aug 16th, 2009 |
| Replies: 2 Views: 508 SUMMARY:Some compilers for small machines, including Turbo C (and Ritchie's original PDP-11 compiler), leave out certain floating point support if it looks like it will not be needed
Read this FAQ... |
Forum: C Jul 26th, 2009 |
| Replies: 13 Views: 698 |
Forum: C Jul 12th, 2009 |
| Replies: 11 Views: 672 rcbhat,
Array of chars and pointer to chars is not same thing.
Declaration of your code is pointer to chars.
char *x="new";
char *y="world";
...
'x' points to the first char of "new"... |
Forum: C Jul 10th, 2009 |
| Replies: 5 Views: 510 Welcome mshafi,
You got errors because graphics system of language is supported by the device. After all, your compiler is 17 years old. Now, it's time to say good bye to that compiler.
Number of... |
Forum: C Jun 28th, 2009 |
| Replies: 9 Views: 509 Little correction on tux's post.
tux>This is already a big error: int result[3],item,*count=0; .
You declare a pointer to an integer, correct till here, but what do you do then? Well, you assign a... |
Forum: C Jun 28th, 2009 |
| Replies: 8 Views: 328 sam511,
I think you tried to open a data file with an editor. There are two types of data file - Text and Binary.
Show us your complete code. Don't forget; wrap up source code with BB code tags.... |