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:");...
Type: Posts; User: esi
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:");...
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?
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...
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...
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...
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...
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
{...
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
...
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...
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...
yes i read it. the program compiles. but the desired results are not given. instead it gives garbage value
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
{
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...
thnx a lot... really helped a lot
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...
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...
thanx a lot for helping me out. i understand my mistakes and working now.
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...