What is diffrance between declaration and defination of a variable or function

Answer Posted / manish soni bca 3rd year jaipu

IN FUNCTION;
-------------------------------------------
1:)DECLARE: int sum(int);//close with semicolon;

2:)DEFINATION: int sum(int n)//not colse with semicolon;
{
//logic of the function;
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the total generic pointer type?

608


How do you sort filenames in a directory?

708


Are the variables argc and argv are always local to main?

569


What is switch in c?

643


What is void main ()?

605






What is static volatile in c?

572


Explain the properties of union. What is the size of a union variable

716


Write a C program in Fibonacci series.

629


Is there any possibility to create customized header file with c programming language?

619


What is an expression?

652


I came across some code that puts a (void) cast before each call to printf. Why?

674


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1855


Do pointers need to be initialized?

556


Are the expressions * ptr ++ and ++ * ptr same?

664


Is it better to use malloc() or calloc()?

645