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

What are dangling pointers in c?

635


What is wrong in this statement?

601


What does the error 'Null Pointer Assignment' mean and what causes this error?

737


What is void main () in c?

722


What do you mean by keywords in c?

621






the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

754


What is variable and explain rules to declare variable in c?

549


What is string function in c?

533


Why is c platform dependent?

616


What is a rvalue?

743


How can I read in an object file and jump to locations in it?

573


How a string is stored in c?

583


What is the full form of getch?

580


What is the heap?

681


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

1855