Search:

Type: Posts; User: san12345

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    175

    c program to find combination of numbers

    i am trying to find combination of numbers . i tried following code but its not working. it is giving strange output. can anyone please fix this code or give me working code?


    #include...
  2. Replies
    0
    Views
    100

    find middle of a linked list

    i tried following function to find middle element of singly linked list, but its not working. Can anyone help please?



    findmiddle(node *head){
    node *p1, *p2;
    p1 = head;
    p2 = head;
  3. Replies
    1
    Views
    145

    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)
    {
    ...
  4. Replies
    2
    Views
    220

    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?
  5. Replies
    2
    Views
    220

    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>

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

    Thank you very much..now its working
  7. 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;
    ...
  8. Replies
    11
    Views
    457

    Hey Thanks man. this code is working !!

    Hey Thanks man. this code is working !!
  9. Replies
    11
    Views
    457

    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
  10. Replies
    11
    Views
    457

    please can you explain me? how to solve further?

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

    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...
  12. 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...
  13. 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>...
  14. Replies
    3
    Views
    3,901

    thx for reply

    thx for reply
  15. Replies
    1
    Views
    7,647

    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...
  16. Replies
    3
    Views
    3,901

    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>

    ...
  17. 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?
  18. Replies
    4
    Views
    350

    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?
  19. Replies
    4
    Views
    350

    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?
  20. Replies
    4
    Views
    291

    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:
  21. Replies
    4
    Views
    291

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

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

    help me to find out error

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

    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
  24. Replies
    3
    Views
    367

    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
  25. Replies
    8
    Views
    440

    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
Results 1 to 25 of 75
Page 1 of 3 1 2 3