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



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

Answer / 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

More C Interview Questions

My teacher ask to make a program that can: Insert record in front Insert record at the end Insert in between Search node record Delete record in front Delete record at the end Delete record in between Using Data structure Linked List type. But I'm really confused about the codes and I can't go through. Please help Thanks in advance. Also here is my unfinished code if someone can make changes it will be more good.

1 Answers  


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

0 Answers   Wilco,


Can you tell me how to check whether a linked list is circular?

1 Answers  


Can include files be nested?

0 Answers  


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

0 Answers  






What are the types of assignment statements?

0 Answers  


What is spaghetti programming?

0 Answers  


what is the difference between procedure oriented and object oriented progaming language

1 Answers  


How can you print HELLO WORLD without using "semicolon"?

7 Answers   HCL, Infosys,


if a person is buying coconuts of Rs10,and then sell that coconuts of Rs9,with the loss of one rupee.After that the person became a millaniore.how?

9 Answers   Wipro,


How to write c functions that modify head pointer of a linked list?

0 Answers  


what is the difference b/w NULL and null?

3 Answers   HSBC, IBM,


Categories