Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- typedef struct node{
- int numb;
- struct node *next;
- }nodeS;
- int main(){
- nodeS *head = NULL;
- nodeS *current = head;
- head->next = malloc(sizeof(nodeS));
- scanf("%d", &head->numb);
- scanf("%d", &head->next->numb);
- head->next->next = NULL;
- while(current != NULL){
- printf("%d", current->numb);
- current = current->next;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement