Steve Larson has over 30 years of experience in the field. Steve began their career in 1990 as a Senior Operations Manager at Precor. After 12 years in this role, they moved on to become President/Owner of Bending Solutions Incorporated in 2002. Most recently, they have been a Process Manager at Western Systems Inc. since 2021.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct _node{
int data;
struct _node *next;
}Node;
Node *head;
void insertNode(int data){
Node *node = (Node *)malloc(sizeof(Node));
node->data = data;
node->next = head;
head = node;
}
void deleteNode(){
Node *node = head;
head = head->next;
free(node);
}
void printList(){
Node *node = head;
while(node != NULL){
printf("%d ", node->data);
node = node->next;
}
printf("\n");
}
int main(){
head = NULL;
insertNode(1);
insertNode(2);
insertNode(3);
insertNode(4);
insertNode(5);
printList();
deleteNode();
printList();
return 0;
}
Links
Sign up to view 0 direct reports
Get started