What is difference between initialization and assignment?

Answer Posted / sweety

Initialization does the memory allocation, i.e. it assigns
the emory to the variable whereas assignment assigns a
value to the variable.

Is This Answer Correct ?    15 Yes 15 No

Post New Answer       View All Answers

Please Help Members By Posting Answers For Below Questions

How many static variables are created if you put one static member into a template class definition?


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create


I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.


what is C++ exceptional handling?


Explain the concept of copy constructor?


Explain one method to process an entire string as one unit?


Do class declarations end with a semicolon? Do class method definitions?


which of the following is not an secondary constant a) array b) real c) union


Difference between strdup and strcpy?


Differentiate between the manipulator and setf( ) function?


How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?


How can you specify a class in C++?


Can a new be used in place of old mallocq? If yes, why?


Declare a class vehicle and make it an abstract data type.


What are the advantages of using const reference arguments in a function?