How do i initialize a variable in C++ : C++ Tutorial

Publié le: 31 août 2019
sur la chaîne: Learn Python
253
4

4. Variable initialization In C++.
Let's talk about variable declaration, learn how variable can be initialized,
Variable initialization is the assignment of data value to the variable declared, though declaration and initialization of variable can be done at the same time, for example int x=4, this is declaration and initialization at the same time or initialization is process of giving a value to the variable .
Although we created the variables they cannot be used as they have no value so we then need to declare them as follows. company = "MoTech";
revenue = 2000.500;
But it may happen that both declaration and initialization is done in the same line.
int revenue = 2000;
This is the program number 4 in Simplified C++ 40 programs
Link Of Book - https://www.slideshare.net/MoTechInc/...
Link Of Source codes - https://github.com/MoTechStore/Simpli...
Instructor : Noel Moses Mwadende
Company : MoTech

SUBSCRIBE for getting notifications of upcoming tutorials at MoTech COMPUTERS:
https://www.youtube.com/motechstore?s...

Please like this video and put in your comments
Follow me on Instagram :   / motech_tz  
#Cpluplusassignvarible #Cpluplusinitializevarible #Cplusplusforbeginner #Cpluplusexamples


Sur cette page du site, vous pouvez voir la vidéo en ligne How do i initialize a variable in C++ : C++ Tutorial durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Learn Python 31 août 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 253 fois et il a aimé 4 téléspectateurs. Bon visionnage!