wat is the difference between a definition and declaration?
float y;---it looks like a declaration..but it s a
definition.how?someone explain
Answer Posted / dally
defination is allocating memory to the variable.
but declaration is telling what type of variable it is and
not allocating memory for it.
Ex.int i;
extern int b;
here int i is definition because variable of value is
allocated in memory.
but variable b declared as int variable but memory is not
allocated for this.
float y is defination as compiler allcates memory for it
if you give as extern float y it is declaration
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Is fortran still used today?
how to count no of words,characters,lines in a paragraph.
Explain void pointer?
What is the most efficient way to count the number of bits which are set in an integer?
What is a MAC Address?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
Why is c not oop?
What is the g value paradox?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
Explain why can’t constant values be used to define an array’s initial size?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What is the concatenation operator?
Explain pointers in c programming?
What is the sizeof () operator?
write a program to concatenation the string using switch case?