« first day (2019 days earlier)      last day (409 days later) » 

1:03 PM
struct node{

int data;
node *next;

}* start=NULL;



void append(node *linkedlist,int data){
node *new_element=NULL;
new_element=(node *)malloc(sizeof(struct node));
new_element->data=data;
if(linkedlist==NULL)
{
linkedlist=new_element;
new_element->next=NULL;
}

else
{
new_element->next=linkedlist->next;
linkedlist->next=new_element;
}
}



int main()
{
append(start,4);
append(start,5);
printList(start);
}
I am using this code to add a node at the starting
but this is not working
what could be wrong in this one?
 
4 messages moved from Lounge<C++>
 
 
4 hours later…
4:50 PM
 
Giphy sucks
 
4 messages moved from PHP
 
 
6 hours later…
11:05 PM
A red herring is something that misleads or distracts from a relevant or important issue. It may be either a logical fallacy or a literary device that leads readers or audiences towards a false conclusion. A red herring might be intentionally used, such as in mystery fiction or as part of rhetorical strategies (e.g. in politics), or it could be inadvertently used during argumentation. The origin of the expression is unknown. Conventional wisdom has long supposed it to be the use of a kipper (a strong-smelling smoked fish) to train hounds to follow a scent, or to divert them from the correct route...
 
Noun: orthography ‎(plural orthographies)
  1. The study of correct spelling according to established usage.
  2. The aspect of language study concerned with letters and their sequences in words.
  3. Spelling; the method of representing a language or the sounds of language by written symbols.
  4. (architecture) Orthographic projection; especially its use to draw an elevation, vertical projection etc. of a building.
 
Passive-aggressive behavior is the indirect expression of hostility, such as through procrastination, stubbornness, sullen behavior, or deliberate or repeated failure to accomplish requested tasks for which one is (often explicitly) responsible. For research purposes, the Diagnostic and Statistical Manual of Mental Disorders (DSM) revision IV describes passive-aggressive personality disorder as a "pervasive pattern of negativistic attitudes and passive resistance to demands for adequate performance in social and occupational situations." Passive-aggressive behaviour often utilises malicious...
 
Noun: slamdunk ‎(plural slamdunks)
  1. Alternative form of slam dunk...
@Mikhail You should say... I was just making a (admittedly, well-done) reference on haring. No need to slap anyone over the head with a red fish.
 
Swedish Fish is a fish-shaped chewy wine gum candy, originally developed by the Swedish candy producer Malaco in the late 1950s for the U.S. market. == Ingredients == According to the USA distribution packages, the candy is made out of the following ingredients: Sugar Invert Sugar Corn Syrup Modified Corn Starch Citric Acid White Mineral Oil Artificial Flavors Red (Dye) #40 Carnauba Wax == In Sweden == In Sweden, large amounts of confectionery are sold every year, and a substantial part of it is sold as pick and mix. Wine gums are sold in many different shapes, of which fish is just on...
 
6 messages moved from Lounge<C++>
 

« first day (2019 days earlier)      last day (409 days later) »