Posts
 
Reputation
Joined
Last Seen
Ranked #707
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
0 Endorsements
Ranked #1K
~7K People Reached
Favorite Forums
Favorite Tags
c x 36
Member Avatar for rizrash

Hey friends i am so excited to join this forum !! its been 3 month since i`ve been learning turbo C !! Now i`ve started lerning and making alot of programs !! Well i am going through one error which is quite funny !! i hope someone of you can …

Member Avatar for David W
0
661
Member Avatar for hket89

Write a program for the following problem. An instructor needs a program that accepts a student identification number and three test scores, test1, test2, and final_test as input, and determines and outputs for each student the semester average and the final letter grade according to the following scheme: SEMESTER AVERAGE …

Member Avatar for dani_277
0
258
Member Avatar for 9868

Hello everyone, Here's my code for making a dynamic array(the user inputs the size of the array). It's working fine but I think that I've not made the best code. Is there any suggestion for improvement or optimization? [code] #include <stdio.h> #include <stdlib.h> int main(void) { int *p; int n,i; …

Member Avatar for Narue
0
89
Member Avatar for RobBrown

I am having some problems with writing a 2d array, then displaying it, and then showing the sum of all of the elements. A major part of this problem is that i nave to write three seperate functions to achieve this. it is supposed to do this: [QUOTE]For this exercise …

Member Avatar for anandi ilu
-1
717
Member Avatar for kyumi419
Member Avatar for Tom Gunn
0
53
Member Avatar for pk09
Member Avatar for 9868
-1
123
Member Avatar for chathu12

Hello Every one, I need to write a program to copy a part of a String from a specified place. Eg: if the first String looks like "This is a C program" I need to extract the part of "C program" How can I do this.Please help me. Can I …

Member Avatar for yellowSnow
0
136
Member Avatar for dumbncool

Hi, CAn anyone tell me what does the following statement do in C. [icode]*p++ = val[/icode] My understanding is that because ++ and * have right-associativity, it is equivalent to [code=C] p++; *p=val; [/code] Similarly [icode]val = *--p[/icode] is equivalent to [code=C] p--; val = *p; [/code] Is it correct?

Member Avatar for Aia
0
137
Member Avatar for no1zson

I am new to C programming and have been using the GOTO all over the place until today when I was informed it is not preferred practice, and due to its adverse affects on debugging and maintenance should only be used in the rarest of cases. I can understand that …

Member Avatar for hket89
0
148
Member Avatar for hket89

/* File: Kilowatt-hours.c Calculate and print bills for the city company.*/ #include <stdio.h> int main() { int account_number; char code; double bills, kilowatt_hours, peak_hours, off_peak_hours; printf("Please enter Your account number: \n"); scanf("%d", &account_number); printf("Enter Your user code [R/C/I]: \n"); printf("R = Residential\n"); printf("C = Commercial\n"); printf("I = Industrial\n"); printf("\nCode = …

Member Avatar for DangerDev
0
200
Member Avatar for lecotti

Hello, having a bit of trouble with this. I am writing a program which sorts a sequence of numbers using a binary tree however i cannot to seem to get it to work; i belive it is something to do with passing the digits to makenode(). Any help would be …

Member Avatar for lecotti
0
92
Member Avatar for yasaswyg

I need to write a function that traverses a general list and deletes all nodes that are after a node with a negative key. But I dont know where to start so can I get some help

Member Avatar for yasaswyg
-1
118
Member Avatar for notsogood

Hi I kinda forgot my old account for this forum coomunity and I wanted to post a problem about the POS I am developing with C. The program allows you to read a certain file (inventory.ini) , add items to it, view the items, edit contents and delete. Here is …

Member Avatar for yellowSnow
0
117
Member Avatar for waqarafridi

Hello Every one Does any One know the format specifier for BYTE. so that it can give me Binary output.

Member Avatar for wildgoose
0
92
Member Avatar for compubaba

What exactly is meant of by associativity(right to left / left to right) mentioned on p53 of K&R 2nd edition. The book mentions that in X= f() + g() f may be evaluated before g or vice versa . But in the table it has been mentioned that () has …

Member Avatar for Salem
0
160
Member Avatar for riyas_26

Going to attend interview in few hours pls i need some basic questions with answers in C Dont send links pls sirs i am fresher..

Member Avatar for DangerDev
0
172
Member Avatar for no1zson

What exactly does the "Return 0;" indicate in this function? I know my code will not even compile without it, but I have just been putting it in out of habit without realizing that I do not even know what it does. I was under the assumption that it meant …

Member Avatar for no1zson
0
325
Member Avatar for lecotti

Hello, simple program here i can't seem to get to work. In a nutshell the program reads characters into an array using getchar and then prints them in a loop, although the numbers printed are not the ones i entered! thanks in advance [code]#include <stdio.h> #define MAXSIZE 100 /*max array …

Member Avatar for lecotti
0
2K
Member Avatar for farhan.foxtrot

Compiling the following problem with visual studio 2000 gives the errors: temp.obj : error LNK2001: unresolved external symbol "void __cdecl ungetch(int)" (?ungetch@@YAXH@Z) temp.obj : error LNK2001: unresolved external symbol "int __cdecl getch(void)" (?getch@@YAHXZ) Debug/temp.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. The code is taken from Dennis …

Member Avatar for 9868
0
178
Member Avatar for yeshkadiyala

Hello... Im a newb to both C programming and DaniWeb .. the prob is tht i try to compile this program in TurboC3 #include <stdio.h> #include<Conio.h> main() { printf( "hello" ); getch(); } when i press " alt+F9 " it says " Warning:: program should return a value" and no …

Member Avatar for Salem
0
163
Member Avatar for Katvillan

Please check my code, it has no error but there is something wrong.. I am trying to generate unique ten numbers from 0-99. then insert/store the generated number in an array(check[]) because later, after filling the array (check[]) with ten numbers, I am going to use it to another fuction …

Member Avatar for MrNoob
0
166
Member Avatar for furqankhyraj

i make that program but this program is giving an error please debug the error #include <conio.h> #include <stdio.h> int main() { int i; printf("This is the first line.\n"); gotoxy(10,4); printf("This is the second line.\n"); gotoxy(20,8); printf("And this is line 3.\n"); return 0; } Thanks,,....

Member Avatar for Ancient Dragon
0
163
Member Avatar for Karthy
Member Avatar for 9868
0
116
Member Avatar for 9868

Here is a code: [CODE] #include<stdio.h> #include<string.h> int main(void) { char *s1="hello"; char *s2="world"; char *s3; s3=strcat(s1,s2); printf("%s",s3); } [/CODE] What does strcat returns? Why does this code results in run time error? And one more question : Are "hello" and "world" terminated with '\0' in case of char pointers? …

Member Avatar for Ancient Dragon
0
73
Member Avatar for 9868

here is a code [CODE] #include<stdio.h> int main(void) { int b[10][5] ; int (*q)[10][5] = &b ; printf("%d", (char*)(q+1) -(char*)q); } [/CODE] the output it produces is 200 while if I change the typecast to (int *)(q+1)-(int *)q, the output is 50. I know that q is a pointer to …

Member Avatar for Tom Gunn
0
84
Member Avatar for 9868

Here is a code [CODE] #include<stdio.h> int main(void) { int a; a=f(10,3.14); printf("%d",a); } int f(int aa,float bb) { return (aa+bb); } [/CODE] If I run the code it produces garbage value, but if I declare the prototype of the function before main it produces the correct output as 13. …

Member Avatar for jephthah
0
205