what is the behaviour of C and C++ compiler for the below
statements.
int *p;
p = malloc(100);
Is the behaviour same ? or different ?
Answer Posted / venu
we should explicitly typecast. Otherwise it is give a
compilation error.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
If a header file is included twice by mistake in the program, will it give any error?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
What is using namespace std in c++?
What is private inheritance?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
Describe linkages and types of linkages?
why and when we can declar member fuction as a private in the class?
What will happen if a pointer is deleted twice?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
How to declaring variables in c++?
What is a container class?
What is difference between malloc()/free() and new/delete?
What is a down cast?
How do I run a program in notepad ++?