Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / reejusri

There is no diffrence between int* x and int *x.
but difference will come into picture when you use:

Case 1:
int* x,y,z;

and

Case2:
int *x,y,z;

in first case x,y and z are integer pointer, where as
un second case only x is integer pointer rest y and z is
integer. So its always a good practice not to put multiple
variable in single line.

Is This Answer Correct ?    4 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2647


Can a program run without main function?

1090


Explain the difference between c++ and java.

1056


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

1230


Do class declarations end with a semicolon?

1031


Which is best c++ or java?

1041


Define a constructor?

995


How come you find out if a linked-list is a cycle or not?

988


When do you call copy constructors?

1082


What does h mean in maths?

1106


What are the four partitions in which c++ compiler divides the ram?

1167


What is overloading unary operator?

1026


What is the benefit of encapsulation?

1018


What do you mean by const correctness?

1031


What is the use of :: operator in c++?

1058