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 |
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.
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); }
Can you tell me how to check whether a linked list is circular?
Can include files be nested?
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.
What are the types of assignment statements?
What is spaghetti programming?
what is the difference between procedure oriented and object oriented progaming language
How can you print HELLO WORLD without using "semicolon"?
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?
How to write c functions that modify head pointer of a linked list?
what is the difference b/w NULL and null?