Is there any difference between dlearations int* x and int
*x? If so tell me the difference?
Answer Posted / sriram
yes. there is a difference.
Exactly to say, the second form is the integer pointer, but
the first form will produce an run time error.
| Is This Answer Correct ? | 0 Yes | 36 No |
Post New Answer View All Answers
Why iomanip is used in c++?
Does c++ have foreach?
How would you call C functions from C++ and vice versa?
What will the line of code below print out and why?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
How would you differentiate between a pre and post increment operators while overloading?
What is istream c++?
What is c++ prototype?
Can a function take variable length arguments, if yes, how?
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
Does c++ have arraylist?
Describe protected access specifiers?
Explain data encapsulation?
What does it mean to declare a member function as static?
What is c++ similar to?