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?

2


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

1421


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.

1529


what is C++ exceptional handling?

17


Explain the concept of copy constructor?

3






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

20


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

1


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

18


Difference between strdup and strcpy?

22


Differentiate between the manipulator and setf( ) function?

3


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

2466


How can you specify a class in C++?

32


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

3


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

1


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

6