Showing results 1 to 15 of 15
Search took 0.01 seconds.
Posts Made By: warpstar
Forum: C++ Dec 10th, 2007
Replies: 1
Views: 347
Posted By warpstar
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
Posted By warpstar
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
Posted By warpstar
Whats the difference between...plz respond in the next 5-10min

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: 479
Posted By warpstar
Re: Confusing Question!

Thanks alot twomers!
Forum: C++ Oct 26th, 2007
Replies: 3
Views: 479
Posted By warpstar
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
Posted By warpstar
Re: Malloc/Calloc Dynamic Memory Allocation.

whats the difference in malloc and calloc/?
Forum: C++ Oct 26th, 2007
Replies: 4
Views: 1,682
Posted By warpstar
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
Posted By warpstar
Forum: C++ Oct 25th, 2007
Replies: 4
Views: 886
Posted By warpstar
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
Posted By warpstar
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
Posted By warpstar
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
Posted By warpstar
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
Posted By warpstar
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
Posted By warpstar
Re: Please Help I am gettin Lvalue required error however I cant fix it?

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: 1,733
Posted By warpstar
Please Help I am gettin Lvalue required error however I cant fix it?

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...
Showing results 1 to 15 of 15

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:45 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC