Forum: C++ Dec 10th, 2007 |
| Replies: 1 Views: 484 Hey, just wanna say thanks in advance with the help.
void backwards(struct node *headp){
int n=0; /* length */
int i,j; /* counters */
struct node *p=headp;
/* find length */ |
Forum: C++ Oct 26th, 2007 |
| Replies: 3 Views: 590 The Function
double *solve( double a[ ][N], double b[ ])
what does the pointer notation * represent in front of solve? |
Forum: C++ Oct 26th, 2007 |
| Replies: 2 Views: 607 Whats the difference between:
pp = malloc(m*sizeof(int)) <--- I understand this
and
pp = **int malloc (m*sizeof(int)) <--- but not this ? |
Forum: C++ Oct 26th, 2007 |
| Replies: 3 Views: 624 |
Forum: C++ Oct 26th, 2007 |
| Replies: 3 Views: 624 Heres the problem, Ill try my best to explain this: If your given a 5x5 array whicih looks like:
1 1 1 1 1
0 1 1 1 1
0 0 1 1 1
0 0 0 0 1
0 0 0 0 0
Basically in each column below any... |
Forum: C++ Oct 26th, 2007 |
| Replies: 4 Views: 2,762 whats the difference in malloc and calloc/? |
Forum: C++ Oct 26th, 2007 |
| Replies: 4 Views: 2,762 Can someone please explain to me how dynamic memory allocation actually works? For example whast going on in the piece of code written below? If you can respond asap, that would be great. Thanks in... |
Forum: C++ Oct 25th, 2007 |
| Replies: 4 Views: 1,358 |
Forum: C++ Oct 25th, 2007 |
| Replies: 4 Views: 1,358 Each of the following program segments might
have syntax, logic or other kinds of errors. If there are errors,
correct, otherwise answer "no error". Assume all function headers
are correct.
... |
Forum: C++ Oct 25th, 2007 |
| Replies: 5 Views: 634 Thats a question taken from a sample midterm test, so that is what i assuming all you need to know to answer the question. I still dont really understand why the star is beside int in the function... |
Forum: C++ Oct 25th, 2007 |
| Replies: 5 Views: 634 _ _ _ _ function2(_ _ _ _ _ _ _ _ _ _ _ );
main{
int n[]= {4, 5, 6};
int *kptr ;
kptr = function2( n ) ;
}
Fill in the blanks and you get:
int *function2( int array[ ]); or |
Forum: C++ Oct 24th, 2007 |
| Replies: 3 Views: 892 This goes the same for a "For Loop"??, the increment expression, if its pre/post wouldnt it be the same since its being evaluated after the statements of the loop have been executed? |
Forum: C++ Oct 24th, 2007 |
| Replies: 3 Views: 892 My Question is regarding the code written below. If you look at the function called "function"
when 'a' is passed to the function and the function "function" is evaluated. I was wondering what the... |
Forum: C Oct 24th, 2007 |
| Replies: 6 Views: 2,909 HI, I WANTED TO THANK YOU FOR YOUR RESPONSE, IT HELPED ALOT!! THANKS AGAIN REALLY APPRECIATE IT! |
Forum: C Oct 23rd, 2007 |
| Replies: 6 Views: 2,909 First of all I would like to say that I am a super newb at C, and would appreciate any help possible. I have to read a text file of words and sort them in lexicographical order (alpha order), I tried... |