what is the difference between declaration ,defenetion and
initialization of a variable?
Answer Posted / harshit
there is no practical such as declaration its in theory only
the only practical application is :
int a; //defination
a=10; //intialization
this is a normal thing we do,,,now
somemethod()
{
int a;//defination
}
main()
{
extern int a;//declaration
a=10//intialization
}
here we declare that there is a variable "a" somewhere
n this is the only use of declaration ...
to best of my knowledge...
plz suggest if someone kno better
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Differentiate abs() function from fabs() function.
Can include files be nested?
What is a nested loop?
What is strcpy() function?
Differentiate between calloc and malloc.
What do you mean by a local block?
Write a program which returns the first non repetitive character in the string?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
Which built-in library function can be used to match a patter from the string?
How can type-insensitive macros be created?
Explain 'far' and 'near' pointers in c.
What is the meaning of && in c?
What is the use of void pointer and null pointer in c language?
How are portions of a program disabled in demo versions?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?