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
What are dangling pointers in c?
What is wrong in this statement?
What does the error 'Null Pointer Assignment' mean and what causes this error?
What is void main () in c?
What do you mean by keywords in c?
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
What is variable and explain rules to declare variable in c?
What is string function in c?
Why is c platform dependent?
What is a rvalue?
How can I read in an object file and jump to locations in it?
How a string is stored in c?
What is the full form of getch?
What is the heap?
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(); }