what is the difference between declaration ,defenetion and
initialization of a variable?
Answer Posted / siddiqui mohd. faisal
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 ? | 32 Yes | 21 No |
Post New Answer View All Answers
What are external variables in c?
Explain how can I make sure that my program is the only one accessing a file?
Are c and c++ the same?
explain what is fifo?
Write a program to reverse a given number in c language?
Give basis knowledge of web designing ...
Explain what is the difference between text files and binary files?
Explain the difference between getch() and getche() in c?
Are bit fields portable?
What is function pointer c?
Write a program to print “hello world” without using semicolon?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
what will be maximum number of comparisons when number of elements are given?
Is main an identifier in c?
Explain what are reserved words?