I just want to know the exact difference between intialising and assigning a variable. Is it possible to initialise a variable multiple times in C prog or is it just initialise once n assign all the other time...can somebody help me out please.
Esmerelda 0 Light Poster
Recommended Answers
Jump to PostYou initialize a variable to give it a starting value if you need to use it.
To initialize the variable you assign a value to it.So initializing means making sure you know the variable has a valid starting value.
Assigning means putting a value into the variable.
Slight definition …
All 2 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.