Forum: C Dec 1st, 2008 |
| Replies: 3 Views: 599 You are right that the array name is the address of the first element of that array. This works exactly the same for arrays of char as well.
In C, there is no "string" type, so we are forced to... |
Forum: C Nov 28th, 2008 |
| Replies: 2 Views: 427 You have allocated space for all of the studentInfo pointers here (except the last one, you should not be subtracting 1):
struct studentInfo *students[numOfStudents-1];
But, you have not... |
Forum: C Nov 20th, 2008 |
| Replies: 6 Views: 691 The above poster is not exactly correct.
When you call scanf(), if the function fails (which will happen when you try to read an integer but it is given a character), it will not actually consume... |
Forum: C Aug 14th, 2008 |
| Replies: 7 Views: 988 You could try and write a very simplified chatroom program. You would need to write two programs:
1. The server, which accepts connections from all the clients. Collects messages from clients, and... |