Search:

Type: Posts; User: esi

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,494

    problem with reading from file.

    m trying to read records for a library database from a binary file.


    while (fread(&lib, recsize,1,fp) == 1)
    {
    gotoxy (20,10);
    printf("Title:");...
  2. Replies
    8
    Views
    1,378

    but suppose i want to insert a value between to...

    but suppose i want to insert a value between to nodes... how will i tell my pointer to go 1 step back to insert a new node between those two?
  3. Replies
    8
    Views
    1,378

    sorting in linked list

    can someone give me an idea how i will create a sorting function for the linked list.. m pasting the code for my insert function of the linked list. i just want to know the logic of how i will sort...
  4. Thread: Linked lists

    by esi
    Replies
    5
    Views
    1,267

    void insert (struct Node**start, int v) { if...

    void insert (struct Node**start, int v)
    {
    if (*start == NULL)
    {
    *start = (struct Node*) malloc(sizeof(struct Node));
    (*start)-> value = v;
    (*start)-> Next = NULL;
    }
    else{
    struct...
  5. Thread: Linked lists

    by esi
    Replies
    5
    Views
    1,267

    so what actually is LINKEDLIST->data = 4 doing??...

    so what actually is LINKEDLIST->data = 4 doing??
    does it assign the value 4 to the variable data in the structure node? y cant we just use node.data=4 ?
    and what does struct node*next in struct...
  6. Thread: Linked lists

    by esi
    Replies
    5
    Views
    1,267

    Linked lists

    i was reading this program of linked list.. but i cant understand the steps clearly.. basically whats troubling me is the use of double pointers and the -> sign. i'm pasting the code for this...
  7. Thread: double pointers

    by esi
    Replies
    1
    Views
    2,069

    double pointers

    can someone please explain me the concept of double pointers refering to the following code or any other code that you think might help me clear my concept for double pointers.


    struct Node
    {...
  8. Replies
    2
    Views
    1,698

    pointers in structures

    i was reading a program about structures and pointers but am unable to understand what is actually happening, can someone please help me out that what processes are happening.
    thanks

    ...
  9. Thread: Queue program

    by esi
    Replies
    11
    Views
    2,812

    same thing... but my stack program works...

    same thing... but my stack program works perfectly fine... the problem is that the queue pprogram should return me the values in the order in wich i inserted the values but it is returning some...
  10. Thread: Queue program

    by esi
    Replies
    11
    Views
    2,812

    i tried everything but still cant get it working....

    i tried everything but still cant get it working. what i'm trying to do is make an array and enter values in it. when all the values have been inserted i want it to return the values in the order...
  11. Thread: Queue program

    by esi
    Replies
    11
    Views
    2,812

    yes i read it. the program compiles. but the...

    yes i read it. the program compiles. but the desired results are not given. instead it gives garbage value
  12. Thread: Queue program

    by esi
    Replies
    11
    Views
    2,812

    the program compiles... i enter the values but...

    the program compiles... i enter the values but when i give the leave command it gives some garbage value.. plz help..




    #include<stdio.h>
    #define SIZE 2

    struct queue
    {
  13. Thread: Queue program

    by esi
    Replies
    11
    Views
    2,812

    Queue program

    i am trying to make a queue program that takes an input of numbers and return the first number first. i am pasting my code. during compilation it gives an error on the last line. it says 'end of...
  14. Thread: pointers

    by esi
    Replies
    6
    Views
    1,358

    thnx a lot... really helped a lot

    thnx a lot... really helped a lot
  15. Thread: pointers

    by esi
    Replies
    6
    Views
    1,358

    pointers

    im doing a little practice on pointers and am trying to make a program that uses arrays and pointers. it takes a character input from user and then gives us the character at a specific array we...
  16. Replies
    3
    Views
    908

    using string in arrays

    i am trying to make a program that takes a string as an input from the user and then prints it in reverse order. but i'm having some problems. here is the source code that i wrote:



    #include...
  17. Thread: problem in C

    by esi
    Replies
    4
    Views
    1,597

    thanx a lot for helping me out. i understand my...

    thanx a lot for helping me out. i understand my mistakes and working now.
  18. Thread: problem in C

    by esi
    Replies
    4
    Views
    1,597

    problem in C

    I am new to using C language and also to programing and would like some help on the following problem.

    Write a function to take integer input from user: If user input 1 then the program prints ONE...
Results 1 to 18 of 18