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
What does c value mean?
Differentiate between calloc and malloc.
Explain what is a const pointer?
When should you not use a type cast?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Why functions are used in c?
how to capitalise first letter of each word in a given string?
Why do we need functions in c?
Explain what are the __date__ and __time__ preprocessor commands?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
What are high level languages like C and FORTRAN also known as?
What is linear search?
List some of the dynamic data structures in C?
What is a struct c#?
Explain the difference between #include "..." And #include <...> In c?