Search:

Type: Posts; User: vajra11

Page 1 of 2 1 2

Search: Search took 0.01 seconds; generated 45 minute(s) ago.

  1. Replies
    1
    Views
    77

    What are steps to delete node

    I want to delete any node in my list I am trying to make function that can delete any node and I have no idea how to do it.


    #include<stdio.h>#include<stdlib.h>


    struct node{
    int...
  2. Replies
    4
    Views
    134

    In this case int main (void ) { struct...

    In this case


    int main (void ) {
    struct node *head = NULL;

    head = newNode(10, head);
    head = newNode(20, head);
    head = newNode(30, head);
    show(head);
  3. Replies
    4
    Views
    134

    Thanks for point out struct node *head =...

    Thanks for point out


    struct node *head = NULL;
    struct node *first = NULL;
    struct node *second = NULL;
    struct node *third = NULL;

    first = newNode(10, head);
    head...
  4. Replies
    4
    Views
    134

    second node doesn't print

    Why the second node in list doesn't print


    #include<stdio.h>#include<stdlib.h>


    struct node{
    int Number;
    struct node *next;
    };
  5. Replies
    2
    Views
    138

    I missed bracket lets take an example of a...

    I missed bracket

    lets take an example of a structure

    struct student {
    char name[30]; //name of type char[30]
    int rollNo; //rollNo of type int
    struct dateOfBirth...
  6. Replies
    2
    Views
    138

    Nested structure doubt

    This define structure whose name is student


    struct student{
    char name[30];
    int rollNo;

    struct dateOfBirth *age;

    }DOB; /*created structure varoable...
  7. Replies
    14
    Views
    367

    I have corrected errors so How to call the...

    I have corrected errors so How to call the function in main

    #include<stdio.h>#include<stdlib.h>
    struct Node{
    int Number;
    struct Node *next;
    };

    struct Node *newNode(int number,...
  8. Replies
    14
    Views
    367

    laserlight Thanks for watching this post I...

    laserlight Thanks for watching this post

    I need to spend more time to learning and I am trying it.

    I want to display list and I do not understand how to print each node
    ...
  9. Replies
    14
    Views
    367

    I am sure this function do what you suggested ...

    I am sure this function do what you suggested

    structNode* newNode(intnumber, structnode *next) { structNode *new= malloc(sizeof(*new)); new->Number = number;
    new->next = next;
    ...
  10. Replies
    14
    Views
    367

    I am agree with you. I have studied easy example...

    I am agree with you. I have studied easy example of functions to pass the parameter and return result. I would work on something complex such as passing the structure and I feel I am lacking...
  11. Replies
    14
    Views
    367

    I am doing struct Node* newNode(int number,...

    I am doing


    struct Node* newNode(int number, struct node *next) { struct Node *new = malloc(sizeof(*new));
    new->Number = number;
    new->next = next;
    return new;
    }
  12. Replies
    14
    Views
    367

    Hi Salem It was nice explanations but I do...

    Hi Salem

    It was nice explanations but I do not understand step 1

    I do not return type in the below function. I haven't seen this type of function deceleration in c language


    struct Node*...
  13. Replies
    14
    Views
    367

    algorithms to creating list

    I am having trouble to create linked list I made a rough algorithm to create link list to understand basics

    Step 1 : Create a New node
    Step 2 : assign data to data member of the new node
    Step 3...
  14. Replies
    2
    Views
    106

    string doesn't print in structure

    I am trying to create the record of student without string.h header file

    My code


    #include<stdio.h>

    struct student
    {
    char name [10];
  15. Replies
    6
    Views
    125

    understood The address of var : 0xffba888c =...

    understood

    The address of var : 0xffba888c = 4290414732 decimal
    The address of var : 0xffba8890 = 4290414736 decimal
  16. Thanks salem I have another question where i am...

    Thanks salem I have another question where i am struggling




    I want to store multiple strings entered by user


    #include<stdio.h>
  17. Replies
    6
    Views
    125

    It tried this and it doesn't give any warning ...

    It tried this and it doesn't give any warning

    back to the question

    The value of var is: 10
    The address of var : 0061FF28
    The address of var : 0061FF30

    if i increment pointer it should...
  18. Nothing change happen it gives a same result ...

    Nothing change happen it gives a same result


    #include<stdio.h>

    int main (void)
    {
    int i;
    char array[15];
    int size;
  19. Replies
    6
    Views
    125

    @jimblumberg my compiler doesn't show any...

    @jimblumberg my compiler doesn't show any warnings


    #include<stdio.h>

    int main (void)
    {
    int number = 10;
    int *pointer;
  20. Replies
    6
    Views
    125

    Pointer question

    #include<stdio.h>


    int main (void)
    {
    int number = 10;
    int *pointer;

    pointer = &number;
  21. Program doesn't print all letters entered by user

    Program doesn't print all letters entered by user


    #include<stdio.h>int main (void)
    {
    int i;
    char array[15];
    int size;

    printf("promote user to enter size off array :" );
  22. Replies
    2
    Views
    137

    Code doesn't print array value

    Program should be get 6 letter from user and then letter print them
    this i have written

    #include <stdio.h>

    int main()
    {
    char letter[5];

    int i;
  23. Replies
    4
    Views
    595

    How to do it without sorting array find...

    How to do it without sorting array


    find first smallest number in array
    find second smallest number in array
    find third smallest number in array
    find fourth smallest number in array
    ...
  24. Replies
    4
    Views
    595

    smallest digit's

    I can find smallest numbers in array of integer but How to find second, third, fourth, fifth smallest number i?

    #include <stdio.h>
    int main()
    {
    char array[5] = {4, 5, 9, 1, 2};
    int...
  25. Replies
    9
    Views
    533

    This program find repeated number #include...

    This program find repeated number


    #include <stdio.h>

    int main(void)
    {

    int i, j;
Results 1 to 25 of 43
Page 1 of 2 1 2