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

Answer Posted / ramesh

ya...it is compiler dependent...it is good pracicce to give as
int *x;

Is This Answer Correct ?    7 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write syntax to define friend functions in C++.

603


Explain selection sorting?

640


How much do coding jobs pay?

556


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

1841


What is the purpose of templates in c++?

569






What are single and multiple inheritances in c++?

581


Why c++ is created?

579


Which format specifier is used for printing a pointer value?

584


What is the basic concept of c++?

580


What is a static element?

579


What are references in c++?

667


Why struct is used in c++?

625


Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02

1515


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

1643


What is the difference between containment and delegation?

706