15,551 Topics
| |
Can you please tell me how is the processing of this code taking place. Because its giving a fixed address same as mentioned in the book. The Answer to this question is Address of i=FFE4 value at ptr =10 Address of j=FFE2 value at prt=20 how come addresses are these, … | |
help me in this project plesae see Attach File [QUOTE]#define TRUE 1 while(TRUE){ //repeat forever type_prompt(); //display prompt on the screen read_command (command, parameters); //read input from terminal if(fork()!=0){ //fork off child process waitpid(‐1, &status, 0); //wait for child to exit } else{ execve(command, parameters, 0); //execute command } } … | |
I would like to find a c compiler for windows 7. So far I have tried 3 and all get the message that "this program is incompatible with windows". Any suggestions? dhsn | |
Hi I am trying to run this C code in Visual Studio along with a set of Cpp files. It gives the below errors error 2143 : syntax error : missing ')' before '&' error 2143 : syntax error : missing '{' before '&' error 2059 : syntax error : … | |
Well I want to make a DLL but all of the tutorials online seem to focus tword GUI programing or go a little too fast. Can anyone explain it? As far as I have seen it's syntax resembles resource files. And what makes it a '[I]Dynamic[/I] Link Libray' as in … | |
Using a C but not a C++ compiler. We have code like this: Suppose we have code like this: [CODE]main() { int *funcko(); int *george = funcko(); printf("%d", goerge[3]); } int *funcko() { int cat[12]; return cat; }[/CODE] What happens when you try this according to the actual rules of … | |
| Hello World! i wrote this code for fliping the array , but it doesn't work ... why can anyone say me ? what i did wrong? [B]array[/B] and [B]i,n[/B] variable are already global declared. [CODE] void exb(void) { int aux; for(i=0;i<(n-1)/2;i++) { aux=x[i]; x[i]=x[n-1-i]; x[n-1-i]=aux; } } [/CODE] thanks :) |
[CODE]void quick(int a[],int m,int n) { int k,key,i,j; if(m < n) { k=(m+n)/2; swap(a[m],a[k]); key=a[m]; i=m+1; j=n; while(i<=j) { while((i<=n)&&(a[i]<=key)) i++; while((j>=m)&&(a[i]>key)) j--; if(i<j) swap(a[i],a[j]); } swap(a[m],a[j]); quick(a,m,j-1); quick(a,j+1,n); } }[/CODE] I am getting a segmentation problem in swap(a[m].a[k]); Please explain. | |
hello....i am trying to implement a client/server socket program in C to display the files available on the server to the client....how do i do this??? | |
hello....i am trying to establish a communication between server and client and later to do some communication between them, so first i am trying to establish communication and i see that server gives "segmentation fault" as the output. I am placing the code below, check it out and let me … | |
I'm writing a code to put names in alphabetical order. The code i've written wont compile as its teling me that 'left operand needs l value'. The lines it refers to is where i'm trying to swap around strins using pointers. I could use some help with this, thanks! [CODE] … | |
hi, i need a help for making double link list program in C double link list (file.h and file.c) in prototype insert first, insert after, insert last, delete first, delete after, and delete last. this program required in hospitaL you can email me : <email removed> (zip) i need for … | |
Can ne1 pls help with how to subtract two large integers stored as an array. i need to do the same for calculating the jacobi symbol. thanks :) | |
[B]Hi I would like some helpful hints on how to make a program to: 1)Create a Binary tree 2)Traverse said tree in Preorder form. Thank You [/B] | |
Hi everyone I have this project for my programming class and would appreciate it if someone could point me in the right direction. The objective of the lab is to write a C program that will be able to solve a boolean formula and print all the satisfying assignments. This … | |
I have a question regarding the use of malloc and realloc: for this, "part", of my assignment, I have to read in every word from a text file and count the number of times it appears in a text file. The definition of a word in this assignment is very … | |
I have an assignment with a slightly strange implementation of priority queues using a binary tree. I'm really having trouble trying to understand how to make my insert function work when the parameters are as follows [CODE]void insert(tree t, void* item)[/CODE] where item is the data going to be inserted. … | |
hello everyone. couple of days back i started learning C (with the help of internet) i have do while loop which i can't get to work as long as i know, when i press 'y' it should again ask temperature. but it is not doing that. i am using Turbo … | |
I am trying to generate a random number, but it should not be a particular number. So i am passing the number which should not be the random number and the range in which it has to be generated to the function, and i am reinvoking the function if the … | |
Hi, can anyone out help me with my assignment which is to read an image file of a maze and find an exit of it. As I'm still kinda of new @ C programming, I'm having problems even reading the image onto C. Cheers Ming | |
C is a medium level language ? i guess c++ also that's why C/C++ are faster than others, but i dont think VB/C# example are to slow like some says. That i hear exactly is: (" a ATM Software can't be in High level language VB/C#/Java because are to slow … | |
I am having problems with my turbo c. its showing me that it cannot find out the include<stdio.h> file from the system. | |
hello im new in programming and i need help in printing this kind of output [CODE] * * * * * * * * * *[/CODE] the number of iterations depends on users input please help me | |
hey guys lol to be honest...i just got this based off of luck x.x idk how but i can't keep doing this with the rest of my programs lol this is a program for an asterick pattern any way i can improve it just by using for loops?please im open … | |
I wrote this program and it compiled with no errors or warnings but when i went to run it i get a segmentation fault and i cant figure out what is causing it. Ive spent hours and hours on this . Anyone with some expertise willing to take a look? … | |
** EDIT: sorry, typo in my title. I meant to write 3 pointers instead of 2. I am trying to revise/create a function in which it is given given three pointers to floats and reorders the values pointed to into ascending order. The prototype for the function would be: void … | |
Hello Dani Web Forum, I'm really new to C. I have an assignment, which I think it's very hard to solve. I have to create a Currency Converter Program that reads data from txt files. The program should also be able to read arguments (argv[]). I'm really confused since it's … | |
why do my programs just flash off the screen when i try to execute them? i am new to programming, don't forget! | |
Hello everyone I am using bsearch() method to find whether the element is in list or not, but i don't know how to find the index of that element. here is the code which i have done:-- [CODE] #include <stdlib.h> #include <stdio.h> int arr[11] = { 10,22,37,49,51,66,68,73,75,79,81 }; int comp(const … | |
Hi could you help me ? how to implement 2 stacks with a queue in data structurs ? |
The End.