Search:

Type: Posts; User: san12345

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    100

    reverse doubly linked list

    i want to reverse doubly linked list. this is the code i tried but its not working. it is printing only first value. i have passed first node to this function.



    reverse(node *t)
    {
    ...
  2. Replies
    2
    Views
    151

    i can convert code to function but the problem is...

    i can convert code to function but the problem is in while loop. why its printing garbage values infinitely?
  3. Replies
    2
    Views
    151

    Binary tree program is not working

    i am trying to write binary tree program in c.
    but its not printing the values. and it is not coming out of while loop.
    this is the code i tried


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

    ...
  4. Thank you very much..now its working

    Thank you very much..now its working
  5. Segmentation fault - creating binary tree

    i want to make binary tree program in c, but i am getting segmentation fault error.. my code is this...


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


    typedef struct node {
    int data;
    ...
  6. Replies
    11
    Views
    398

    Hey Thanks man. this code is working !!

    Hey Thanks man. this code is working !!
  7. Replies
    11
    Views
    398

    yes i have done using for loop for(i=1;i

    yes i have done using for loop
    for(i=1;i<=n;i++)
    printf("%d\n", i);
    but i want to do it using recursion
  8. Replies
    11
    Views
    398

    please can you explain me? how to solve further?

    please can you explain me? how to solve further?
  9. Replies
    11
    Views
    398

    simple Recursion program - strange output

    i want to write program which prints all natural numbers from 1 to n.
    where n is user input. but i want to write using recursion and not by for loop.
    ex. if user enters 5 then output should be 1 2...
  10. How to make greatest 3 digit number from given number

    please help me i m making program which takes a number from user and then make greates 3 digit number from the digits of that number
    ex. if user type 57149 then output should be 975 because this is...
  11. Not inserting value in nth position in singly linked list

    i want to insert node at nth position but when i press 1 to insert value program stops working means its not inserting value.
    what is wrong in this code?


    #include <stdio.h>
    #include <stdlib.h>...
  12. Replies
    3
    Views
    3,771

    thx for reply

    thx for reply
  13. Replies
    1
    Views
    7,198

    find closest number in array

    i want to make program to find closest number in array
    ex. if array elements are 2,7,78 and user types 89 then nearest element to 89 is 78 so it should print 78 but it prints 100
    why?
    i think...
  14. Replies
    3
    Views
    3,771

    print alternate characters in string

    i want to write program to print alternate characters in string
    i have tried following code but it prints first character at infinte times
    whats wrong in below code?



    #include <stdio.h>

    ...
  15. Search element in array using function help plz

    i have write code for searching element in array of intgers
    its working but i have to do this program using function.
    can anyone write code for function?
  16. Replies
    4
    Views
    342

    i cant write here but you can see this link...

    i cant write here but you can see this link Number Patterns - Program in C
    there are so many pattern programs but they didnt explain any of them
    can you explain me how the code works?
  17. Replies
    4
    Views
    342

    How to write pattern programs?

    hi all
    i want to print pattern programs.i google but i dont understand whats the logic of this program. what is the easy way to remember such programs. where to start from?
  18. Replies
    4
    Views
    278

    thxx problem solved...i just use name[100] and...

    thxx problem solved...i just use name[100] and author[100] at start of program and problem solved...:biggrin:
  19. Replies
    4
    Views
    278

    its not working... last printf() statemment not...

    its not working... last printf() statemment not executes and i got program has stoped wroking error
  20. Replies
    4
    Views
    278

    help me to find out error

    #include<stdio.h>
    struct book
    {
    char name;
    char author;
    int pages;
    float price;
    };
    void main()
    {
  21. Replies
    3
    Views
    355

    thx for reply. your code is working but is it...

    thx for reply. your code is working but is it posible to make it using struct only... instead of typedef
  22. Replies
    3
    Views
    355

    simple struct program but erros

    im making simple program to read roll number and name of 5 students but it only prints roll no of 1st student whats wrong in code?



    #include<stdio.h>


    void main()
    {
    struct student
  23. Replies
    8
    Views
    432

    I want to bring out of marks in my collage exam...

    I want to bring out of marks in my collage exam
    So I want to learn c program from basic
    That's why I'm asking questions
  24. when i calculate, i found answer 4 6

    when i calculate, i found answer 4 6
  25. can anyone explain me why output is this ?

    void main(){
    int a,b;
    a=b=1;
    a=a++ + ++b;
    b=b++ + ++a;
    printf("%d%d",a,b);
    }
Results 1 to 25 of 73
Page 1 of 3 1 2 3