15,552 Topics

Member Avatar for
Member Avatar for Donnovan

hi everyone, I'm trying to write a program that calculates the the fourth sqrt() of an int ..., can someone help me thnxx

Member Avatar for DavidB
0
144
Member Avatar for smart_pc

please can any body tell when a new OPERATING SYSTEM kernal works then how it reads the hard disks .Is any body is interested in operating system developement. We are trying to make an OS which is independent in nature .Not UNIX type or WINDOW any body interested can send …

Member Avatar for ArkM
0
105
Member Avatar for Somersett

Well I'm about 1000 lines of code into my first program. After having recently "compartmentalized it" into small functions for readability's sake, I now find myself passing upwards of 8 or 9 variables into them. As I'm thinking of how the program will develop, I realize I'm probably going to …

Member Avatar for Somersett
0
288
Member Avatar for millanskie

Hi does anyone knows how to sort in link list, i already done some parts of it and its already working except for the sorting part. please help me about this sorting problem... [CODE]#include <stdio.h> #include <stdlib.h> struct nodeTag { int nData; struct nodeTag *pLink; }; typedef struct nodeTag structNodeType; …

Member Avatar for Narue
0
116
Member Avatar for seanl1

So I went to my prof. for help with a particular problem and this is the answer I got. I understand the majority of the answer but I have a few more pointed questions. 4. (6 points) A computer has 32-bit instructions and 12-bit addresses. Suppose there are 250 two-address …

Member Avatar for ArkM
0
551
Member Avatar for johnray31

Hi guys .. 1) is there something like that we have a limit upto which we can create a pointer to pointer to pointer.. i.e int ***********P... like this to which extent we can do this 2) is this allowed if in file one i declare a global variable int …

Member Avatar for Narue
0
277
Member Avatar for atman

Hello again guys! i have a simple question how to promt user to enter a number for example 444 or whatever and for c to print it as a 9 digit number, so if its 444 c would print it as 000000444? any help would be greatly appriciated., thanx!

Member Avatar for yuvaraj.tr
0
95
Member Avatar for johnray31

I am just trying to explore c and i was wonder what is reason behind ... segmentation fault.. but second function is workiing .. can someone explain me reason [code=c] void myfunc1(char *t) { t = t+1; t = 'l'; //it gives segmentation fault ? why } void myfunc2(char *s) …

Member Avatar for ArkM
0
123
Member Avatar for seanl1

Just trying to compile some code with tcc: [CODE] #include<stdio.h> main () { int x = 10; int *p; p = &x; x = 40; printf(ā€œ%d %d %d %dā€,x,&x,p,&p); } [/CODE] Trying to learn about pointers and memory addresses and I took the code right out of the book, any …

Member Avatar for seanl1
0
74
Member Avatar for kyeong

I'm having trouble implementing isalpha in the correct spot. When I put it in the if statement, it doesn't determine the palindrome correctly. It says everything I entered is a palindrome. Then I try to implement it with the int k, but then it gave me "parse error before +," …

0
50
Member Avatar for desiman

I have to parse the following file in C and call like specific things like ingridients, time and stuff, so how do I go about storing it in a file. The recipes repeat over and over in same format. ************************ Recipe: "Creamy" Salmon Over Pasta By: Skinny One-Pot Meals, Ruth …

Member Avatar for ddanbe
0
109
Member Avatar for archerabi

hi..i ve programming in c and c++ for a long time now...i want to implement a simple code to kind of know and get started with rpc ... i've looked at many tutorials and all have the same code for printing a msg to the console here's the link [URL="http://docs.sun.com/app/docs/doc/816-1435/6m7rrfn7k?a=view"]http://docs.sun.com/app/docs/doc/816-1435/6m7rrfn7k?a=view[/URL] …

0
44
Member Avatar for atman

Hey Guys., Im super desparate have 1 day to hand this in. Have to use loops only. quote: The use of any of the following C statements or functions is not permitted under any circumstances. break; continue; exit(); abort(); No global variables. When the program starts it will prompt the …

Member Avatar for Denniz
0
161
Member Avatar for gmdune

Hi All, I need help figuring out how I can call the various functions in this program from main. I've figured out as much of the code I could, but now I'm stumped. Any help would be appreciated. [code] #include <stdio.h> float deposits[50] = {0}; float withdrawals[50] = {0}; char …

Member Avatar for Denniz
0
115
Member Avatar for jhuyenh

hi, i'm trying to figure out how to fix this warning: decode.c(77) : warning C4715: 'get_msg' : not all control paths return a value i understand that my get_msg could not always return a value, i'm just not sure how to state that in my code? can anyone suggest anything? …

Member Avatar for ArkM
0
213
Member Avatar for ambarisha.kn

Consider d_type=POINT_LONG in the following program. and data.Long=0xA; In the following program i am getting correct output in constDataArea[0],constDataArea[1],constDataArea[2], constDataArea[3] which is oxA, 0x0, 0x0, 0x0. But not able to write the same into ambi.dat file. Some junk value is inserting in the front. and writing 5 bytes instead of …

Member Avatar for ambarisha.kn
0
161
Member Avatar for dhir13

Hi, I have some text file like with following structure (also attached). I want to extract only data in the form of an array: ------------------------------------------ 2048 52 429 425 398 200.000000 0 638 940 921 906 25 26 27 25 61 4096 213 1116 1371 398 200.000000 --------------------------------------------- Could you …

Member Avatar for Dave Sinkula
0
127
Member Avatar for hinduengg

Please help me find the sine series . My program is: [code] #include<stdio.h> #include<conio.h> #include<math.h> float facto(int a); int main() { int n,g,k,y; y=1; float s=0.0; float f=0.0; float l =0.0; float x; int t=0; printf(" limit is \n"); scanf("%d",&n); printf(" no. is \n"); scanf("%d",&x); x=3.14*(x/180.0); while(y<(n+1)) { g=y; if(g%2==0) …

Member Avatar for hinduengg
0
140
Member Avatar for Trades

I have this except from my program and would like to change the line showing the error to say red, how would I do that? switch (choice) { case 1: { printf("\nThank you for choosing the Del Mar Store"); printf("\nThe price you entered is: $%10.2f<<<<\n", (price)); printf("The Sales tax on …

Member Avatar for twek
0
193
Member Avatar for jillcatrina

In my HR interview, i had one question. But , i did not answer for this. Can any one give me answer for this? How to display the statement without using semicolon in c programming? i mean, you should use semicolon anywhere in the program. jillcatrina <snip fake signature>

Member Avatar for ArkM
0
100
Member Avatar for seanl1

Hey guys, so I have a question about actually calculating the size of the three fields and what cache block a hex number addresses. We're working with fully associative, direct mapped, and 2-way. It all went pretty fast and over my head but I don't think anything is too complicated, …

Member Avatar for seanl1
0
118
Member Avatar for paynegm

I have the code below and I keep getting an error saying that swap isnt a function. Just wondering if anyone had any idea why. Thanks void swap(double *x, double *y ){ double temp; temp = *x; *x = *y; *y = temp; void sort(double h[], int size){ int i, …

Member Avatar for ddanbe
0
108
Member Avatar for smart_pc

using c we can develop an o s but where will it run or start to execute. who will execute the instructions of the kernel ? how to make a kernel,any idea or hint ? where do we get those low level services provided by assembly language functions ? there …

Member Avatar for jbennet
0
107
Member Avatar for atman

Hey Guys! I have a weired one here, it must be a post-test loop, and here is how result has to look like: Enter the Section Code: 0 Invalid value entered. Must be 1 to 4, please re-enter: 1 Enter the Student's ID: 456789 Enter mark#1: 10 Enter mark#2: -20 …

Member Avatar for bionicseraph
0
147
Member Avatar for Nalini Ramesh
Member Avatar for serkan sendur

what are available database management systems to use with c applications?

Member Avatar for ArkM
0
70
Member Avatar for sanushks

Hi All. I've compiled my code in Turbo C++ in a WinXp machine, Will i be able to execute the compiled code(.exe file) in Windows server 2003 or Unix Machine.If yes, is there any libraries or software i need to copy on the other machine. Thanks in advance

Member Avatar for jbennet
0
117
Member Avatar for ramanvis05

We are trying to design a C compiler using LEX, YACC that outputs the C syntax to three address code with LEX and YACC lex TAC.l yacc -d TAC.y gcc -c lex.yy.c -o TAC.lex.o With the following error: Expected specifier-qualifier-list before ETYPE Can someone please help out? TAC.l [CODE] %{ …

-1
59
Member Avatar for DeadJustice

I pretty much got my assignment working except for one part, I need to reverse the output if the user enters "-r" in the command line. Can anyone help me with this? EDIT: By reverse I mean list the last child first down to the original process. [code] int j …

Member Avatar for DeadJustice
0
85
Member Avatar for galmca

[code] #include<stdio.h> #include<conio.h> struct link { int data; struct link*ptr; }; typedef struct link node; struct link1 { int info; struct link1*next; }; typedef struct link1 node1; int main() { int i,size; node*start,*temp,*p; int j,listsize; node1*start1,*temp1,*k; clrscr(); { printf("enter the size of first list:\n"); /*creating first list*/ scanf("%d",&size); printf("enter list:\n"); …

Member Avatar for devnar
0
260

The End.