Is there any difference between dlearations int* x and int
*x? If so tell me the difference?

Answer Posted / steve

I think there is no difference.
Also,

Case 1:
int* x,y,z;

and

Case2:
int *x,y,z;

these two cases are exactly same.
In both cases, y and z are not pointers. They are int.

Is This Answer Correct ?    32 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

1804


What is the use of lambda in c++?

573


What are virtual constructors/destructors?

578


Which programming language's unsatisfactory performance led to the discovery of c++?

797


Which one is a preferred language C or C++? Why?

615






What is iomanip c++?

597


What is the object serialization?

620


Is it possible for the objects to read and write themselves?

639


What are different types of loops in c++?

654


What are c++ files?

575


What is purpose of abstract class?

584


What is microsoft c++ redistributable 2013?

573


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

658


Explain mutable storage class specifier.

626


Why is polymorphism useful?

563