Forum: C++ Dec 10th, 2007 |
| Replies: 1 Views: 347 Please Help Me Understand this Simple Code. 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: 412 The * in a function. 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: 443 |
Forum: C++ Oct 26th, 2007 |
| Replies: 3 Views: 479 |
Forum: C++ Oct 26th, 2007 |
| Replies: 3 Views: 479 Confusing Question! 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 1 is a... |
Forum: C++ Oct 26th, 2007 |
| Replies: 4 Views: 1,682 |
Forum: C++ Oct 26th, 2007 |
| Replies: 4 Views: 1,682 Malloc/Calloc Dynamic Memory Allocation. 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: 886 |
Forum: C++ Oct 25th, 2007 |
| Replies: 4 Views: 886 Please Help Dynamic Memory Allocation. 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.
Function... |
Forum: C++ Oct 25th, 2007 |
| Replies: 5 Views: 478 Re: Quick Question! 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: 478 Quick Question! _ _ _ _ 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: 609 Re: Quick Question! Post/pre Inc! 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: 609 Quick Question! Post/pre Inc! 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: 1,733 |
Forum: C Oct 23rd, 2007 |
| Replies: 6 Views: 1,733 |