The correct code should be something like : #include void display(int*, int); //declaration of your function int main( ) //return type of main should be int { int num = {24, 34, 12, 44, 56, 17}; display(&num0,6); //Correct the spelling mistake } void display ( int *j, int n ) //specify a return type { int I ; for ( I = 0 ; I.
– Prasoon Saurav Aug 16 '10 at 17:21 @Prasoon Saurav - you marked this as community wiki, so any votes will not effect your rep. – Oded Aug 16 '10 at 17:26 If your gonna have non-void return in main( ) you should at least return 0; . I didn't down vote you though, looks like proper solution.
– wfoster Aug 16 '10 at 17:26 For being too right. ;) Whether this is homework or learning C, aja will learn more effectively if we don't do it for him. – dublev Aug 16 '10 at 17:27 1 Random downvotes happen all the time, don't take them to heart.
Sometimes you will get an answer (which you may or may not agree with), sometimes you won't even get that. – Oded Aug 16 '10 at 17:35.
...I'm just saying, given the info by the poster this is the best I could give. – Gabe Aug 16 '10 at 17:16 2 The lack of return types could be a problem too. – FrustratedWithFormsDesigner Aug 16 '10 at 17:18 Oh, this does look like homework!
And the only other post he has on SO is homework too! KHAAAAAAN! – Gabe Aug 16 '10 at 17:19.
The reason you're getting an error, besides your typo, is that in C, you cannot refer to a variable or function before its declaration. Thus you can fix your code by either moving the display function to before main, or as Prasoon did, add a declaration above main. Technically you can leave out return types as C assumes int (at least ANSI C89 does), but it's not a good idea.It's good practice to always specify return type to improve readability and avoid tricky type-mismatch bugs (especially since C does a lot of implicit casting).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.