| | |
Whats the difference between...plz respond in the next 5-10min
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
The second example is illegal syntax, maybe you meant this?
The first example is ok in C language but not in C++, which requires the return value of malloc() to be typecast to the appropriate type of variable. Other than the typecast they both are identical.
And BTW you shouldn't expect people to respond so quickly to a question.
pp = (int**) malloc (m*sizeof(int))The first example is ok in C language but not in C++, which requires the return value of malloc() to be typecast to the appropriate type of variable. Other than the typecast they both are identical.
And BTW you shouldn't expect people to respond so quickly to a question.
Last edited by Ancient Dragon; Oct 26th, 2007 at 8:16 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
This is all I have to say about the topic title.
http://catb.org/~esr/faqs/smart-questions.html#urgent
http://catb.org/~esr/faqs/smart-questions.html#urgent
![]() |
Similar Threads
- getting graphics into c++ (C++)
- Help with FTP vs PHP (Site Layout and Usability)
- whats the difference between dvd-r and dvd-rw (Storage)
- Ball Bearing and Sleeve bearing Whats the difference? (Cases, Fans and Power Supplies)
- whats the difference btw memory,warp,cpu and gpu clocks (Motherboards, CPUs and RAM)
- about blank virus (Viruses, Spyware and other Nasties)
- Some help with building a system? (Troubleshooting Dead Machines)
- MSN Messenger 6 problem! (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: The * in a function.
- Next Thread: displaying arrays
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline graph homeworkhelper iamthwee ifstream input int integer java lib linux list loop looping loops map math matrix memory multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






