what is the difference between declaration ,defenetion and
initialization of a variable?
Answer Posted / sakthi sudhan
declaration : int a;
declaration means here a is declared as integer variable
initialization : int a = 5;
initialization is whatever you have declared give that
variable some value
definition : int a;
definition is whatever variable you have declared give it's
datatype as here a is declared as integer variable
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
Is null a keyword in c?
Tell me what is null pointer in c?
What are compound statements?
How do you sort filenames in a directory?
What is the process of writing the null pointer?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
What is the value of h?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
How is a pointer variable declared?
explain what is fifo?
Are there constructors in c?
What is the method to save data in stack data structure type?
What is static memory allocation? Explain
What is action and transformation in spark?