Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

malihe

  • 3 years ago

can some one help making phone book with linked list in c?

  • This Question is Closed
  1. A.Avinash_Goutham
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    sure #define size 30 struct Node{ char name[size]; int number; struct Node *next; }; typedef struct Node node; void add() { node *new=(node*)malloc(sizeof(node)); if(new)

  2. A.Avinash_Goutham
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    if(new) { printf("enter the name:"); scanf("%s",new->name); printf("enter the number:"); scanf("%d",&new->number); } }

  3. malihe
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    thanks but it must contain all in the file that i put

    1 Attachment
  4. A.Avinash_Goutham
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    it's pretty much the same try doing it urself

  5. malihe
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    but it's not home work now tomorrow i have c exam and it may be sth like this in the exam

  6. A.Avinash_Goutham
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    u shud try it urself else u never gonna learn

  7. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy