15,551 Topics
| |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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! | |
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) … | |
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 … | |
| 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 +," … |
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 … | |
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] … | |
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 … | |
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 … | |
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? … | |
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 … | |
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 … | |
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) … | |
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 … | |
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> | |
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, … | |
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, … | |
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 … | |
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 … | |
Is there any opensource xhtml parser (in C) available ? | |
what are available database management systems to use with c applications? | |
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 | |
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] %{ … | |
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 … | |
[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"); … | |
Hi guys I am trying to implement a buddy system using C, I've free the memory using myfree() and i've allocated memory using mymalloc(). I've tried to run the program, but it keep on generating segmentation error, would you guys please see the code, and tell me if you've spotted … |
The End.