what is the difference between declaration and definition
of a variable or function ?

Answer Posted / ashu_deepu

i will like to add 1 thing abt d variabes.

declaring a variable means
int deepu; //it is declaration

defining means assigning value to the variable.

eg: int deepu=2018; //it is definition

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many keywords are there in c?

591


write a program to concatenation the string using switch case?

1560


How do you generate random numbers in C?

659


What are the advantage of c language?

554


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

654






Subtract Two Number Without Using Subtraction Operator

357


What are enums in c?

663


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

645


Why doesnt that code work?

601


What is page thrashing?

653


How are variables declared in c?

599


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1764


Explain what standard functions are available to manipulate strings?

613


What are the advantages of Macro over function?

1206


What is the use of printf() and scanf() functions?

635