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
What is the default value of local and global variables in c?
What is indirection?
What is a spanning Tree?
How can I get random integers in a certain range?
Explain the ternary tree?
How many types of arrays are there in c?
What does void main return?
Suggesting that there can be 62 seconds in a minute?
What are different types of pointers?
What is malloc calloc and realloc in c?
What are qualifiers and modifiers c?
What is malloc return c?
What are the back slash character constants or escape sequence charactersavailable in c?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
What is %d called in c?