What is difference between initialization and assignment?
Answers were Sorted based on User's Feedback
Answer / rahul rasal
Simple Word In my Word..
Initilize:
E.g:
int i;
Assign:
E.g:
int i=30;
Is it Right...?
| Is This Answer Correct ? | 3 Yes | 8 No |
Answer / shweta iyer
In initialization, we provide the variable with some initial values which can be changed later. But in assignment, we provide the variable with a fixed value which remains same throughout the whole program.
| Is This Answer Correct ? | 8 Yes | 14 No |
Is the declaration of a class its interface or its implementation?
Explain what happens when a pointer is deleted twice?
what is C++ exceptional handling?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
string somestring ; Which of the following choices will convert a standard C++ string object "somestring" to a C string? a) Copy.somestring () ; b) somestring.c_str () c) &somestring [1] d) std::cstring (somestring) e) (char *) somestring
Differentiate between a constructor and a method in C++.
How can you quickly find the number of elements stored in a static array?
What is boyce codd normal form in c++?
Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].
Is oops and c++ same?
Implement a 2 dimensional array by one dimentional array
What is #include iostream h in c++?