int *iArray; /* Array to hold up to 10 integers */
iArray = (int *)malloc(10);
No clue, I'd appreciate your help!
Three answers:
Jared
2012-02-19 17:25:31 UTC
iArray = (int *)malloc(10*sizeof(int));
2016-10-01 07:25:22 UTC
void WriteDay(char d[]); That line publicizes a functionality prototype. It shall we the compiler be attentive to that there is a functionality called WriteDay and what arguments would desire to be handed to it. It does no longer tell the compiler how the WriteDay functionality is applied. you would be able to desire to have the certainly functionality someplace so as that the compiler is familiar with what it somewhat is meant to do.
2012-02-19 17:17:51 UTC
space after (int *).....try that and debug
lol didn't work huh....
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Search results for 'What is wrong with this C code?' (Questions and Answers)