Search Results

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: OutOfReach ; Forum: C and child forums
Forum: C Nov 28th, 2008
Replies: 2
Views: 424
Posted By OutOfReach
Ahh! I see, so you need to allocate space for each structure that the pointer points to.

I ended up using:

students[i] = (struct studentInfo *)malloc(sizeof(struct studentInfo));


...
Forum: C Nov 28th, 2008
Replies: 2
Views: 424
Posted By OutOfReach
Hey all, I am a C beginner. My problem with my code is that I get a segfault.
Here's my code

#include <stdio.h>

struct studentInfo {
int totalClasses;
float GPA;
char...
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC