Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is difference between initialization and assignment?

Answer Posted / lucky

Some defference between Initialization and assignment
Initialization means whenever we initialize any var. at
declaration time.So as we initialize var. in init() in java
programming.For i.e.
prblic init()
{
int a=10;
}
Assignment means whenever we assigne any value in any var.
except const. variable.For i.e.
int a,b;
a=15; //right
b=a; //right
const c;
c=10 or c=a; //Worng
const d=20; //that is initialization

Is This Answer Correct ?    22 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c++ code?

1072


How does c++ sort work?

924


What is a class template?

1025


What is the difference between prefix and postfix versions of operator++()?

1025


Why do we use double in c++?

1007


Define the process of handling in case of destructor failure?

993


What is the difference between struct and class?

1423


Is C++ case sensitive a) False b) Depends on implementation c) True

1017


Which is most difficult programming language?

1029


Explain rethrowing exceptions with an example?

978


Explain the difference between struct and class in terms of access modifier.

1130


What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

1071


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

909


What is pure virtual function?

1021


Does c++ vector allocate memory?

942