What is diffrance between declaration and defination of a variable or function
Answers were Sorted based on User's Feedback
Answer / deepak mundhada
1 when we declare a variable it gets memory allocated at
stack in ram.
definition means we are assigning value to that variable.
2 address of variable can be changed but address cant be
changed.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / r.ramakrishna
Declaration means allocating memory for the variable.
Definition means defining address of the variable in a class.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / nagarjuna reddy
once a variable is defined it'l never change through entire
program.
but declaration of a variable can be changed as per our
requirement.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / 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 |
please give me some tips for the placement in the TCS.
what is difference between #include<stdio.h> and #include"stdio.h"
How can you call a function, given its name as a string?
can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance
The C language terminator is a.semicolon b.colon c.period d.exclamation mark
what is meant by flushll() in c programming?
What are the types of arrays in c?
We can draw a box in cprogram by using only one printf();& without using graphic.h header file?
What is the use of function in c?
To what value do nonglobal variables default? 1) auto 2) register 3) static
Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June
How to calculate Total working time using Login and logout?
2 Answers CTS, Cygnus, Infosys, Signal Networks, TCS, Wipro,