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 |
In which memory a class gets stored(in heap /in stack)? And why??
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
List out function which we can call without using object
Explain the scope resolution operator?
Explain stack & heap objects?
How do you know that your class needs a virtual destructor?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
You have to take 2 arrays of length 10. Input the values of array 1 from the user. Then copy the values of array 1 to array 2 in ascending order For example if user enters 9, 5, 6, 8, 1, 0, 2, 7, 4, 3 then copy the smallest element i.e. 0 first followed by 1, 2 and so
Difference between class and structure.
What is auto used for in c++?
Why is c++ still best?
What is guard code in c++?