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


Please Help Members By Posting Answers For Below Questions

Tell us something about keyword 'auto'.

833


write a program to display all prime numbers

1653


how do you programme Carrier Sense Multiple Access

1712


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1041


What does. int *x[](); means ?

816


What is chain pointer in c?

773


What is the use of static variable in c?

801


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

846


What is a static function in c?

823


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

887


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1035


Is javascript written in c?

782


What are valid operations on pointers?

919


How can I write functions that take a variable number of arguments?

837


Write a program to generate the Fibinocci Series

860