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

Can I learn c++ without c?

1104


What is pointer to member?

1031


Why null pointer is used?

1004


Explain data encapsulation?

1076


What is void pointer in c++ with example?

1032


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

1025


Incase of a function declaration, what is extern means?

919


What is the function of I/O library in C++ ?

1134


What are abstract data types in c++?

941


Explain the difference between static and dynamic binding of functions?

1016


Can we sort map in c++?

973


why is c++ called oops? Explain

997


How would you use the functions sin(), pow(), sqrt()?

1142


What is the latest c++ standard?

1094


How is static data member similar to a global variable?

1072