Explain what is the difference between declaring a variable and defining a variable?

Answer Posted / ss

Declaring variable means
Eg- int a;
Defining variable means we are giving some integer value to that a variable
Eg- a=100;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is main () in c?

584


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

1954


What is data structure in c language?

600


What does emoji p mean?

596


If fflush wont work, what can I use to flush input?

612






Do string constants represent numerical values?

919


What are the advantages and disadvantages of pointers?

572


plz let me know how to become a telecom protocol tester. thank you.

1740


i got 75% in all semester am i eligible for your company

1734


Write a program to swap two numbers without using a temporary variable?

604


How do you redirect a standard stream?

620


how to introdu5ce my self in serco

1521


Why void main is used in c?

559


Can we replace the struct function in tree syntax with a union?

775


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

648