Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #16.0K
Ranked #2K
~3K People Reached
Favorite Tags
Member Avatar for tyliang

I tried to change for loop to do while loop so that I no need to control the value of i in the future. But seems my program crashes. [code] #include<stdio.h> #include<stdlib.h> struct stock { char code[10]; char name[10]; float amt; int held; float price; struct stock *next; }; int …

Member Avatar for uskok
0
260
Member Avatar for redroze

hello folks, I have an array of integers and I need to search if there's a combination of 2 numbers that resault a defined sum. No loops or static variable are allowed. Any suggestions? cheers, Elad.

Member Avatar for uskok
0
147
Member Avatar for rt.arti

Hello, I am trying to generate multiple files out of a single text file by changing one parameter. My text file is of the form -- p 3 6 [COLOR="Red"]n 1 1 n 3 -1[/COLOR] a 1 2 0.8 a 1 3 0.7 e 1 2 1 2 0.7 e …

Member Avatar for nezachem
0
97
Member Avatar for raghuhr84

Hi All, I am facing the scanf() function problem, below given is a small code snippet where am facing the problem. [CODE] int main() { char str1[100]; char str2[100]; printf("Enter 1st string\n"); scanf("%[^\n]s",&str1); printf("Enter 2nd string\n"); scanf("%[^\n]s",&str2); printf("1st string is %s\n", str1); printf("2nd string is %s\n", str2); return 0; }[/CODE] …

Member Avatar for Dave Sinkula
1
665
Member Avatar for harshchandra

This program takes two decimal number from the user and a operator for addition or substraction.it displays the binary equivalent of both number and also the added or substracted binary number .

Member Avatar for Nick Evan
-2
599
Member Avatar for xavier666

During run-time of a menu driven program, I want the user to see what option the user has entered. Something like this :- [CODE][OUTPUT] . . . Enter Option : [1] <- [I]User given[/I] Press Any Key To Continue ... [_] <- [I]Blinking Cursor[/I] . . . [/OUTPUT][/CODE] After I …

Member Avatar for xavier666
0
150
Member Avatar for rt.arti

Hello! I had a question about appending data in to a file. My program flows in the following way-- [CODE] // This function reads data from the file parse_input_data_for_one_algo(some parameters) { FILE *f = fopen (filename, "rw+"); while ( fgets (in_line, 100, f) != NULL ) { //read values } …

Member Avatar for uskok
0
143
Member Avatar for Hanyack

im new at C, actually just started programming in general, and im having a good amount of problems with this program. [code=c] #include <stdio.h> int main(void) { char vehicle; char car; char truck; int hrsn, minn; int hrso, mino; int time; int rt; int amo; printf("What time did you park(military …

Member Avatar for uskok
0
580
Member Avatar for chet6

Hi, Could anyone please explain how the memory allocatio is done in case of double pointers?

Member Avatar for manutm
1
136
Member Avatar for pigwink

A big Hideeho from the Tipperary,Ireland. A search bar just appeared after my wife was online. Also having problems with some programs not ending processes, that is: Firefox and win media player, so I have to right click and end process which is becoming more than annoying. I use spybot, …

Member Avatar for jholland1964
0
263
Member Avatar for Dewey1040

ok this code gets three sides of a triangle and prints out the area... but it just prints out that the area is 0 every time... why? [code=C] #include <stdio.h> #include <math.h> double area(int a, int b, int c); int main(int argc, char *argv[]){ int a, b, c; printf("\nSide A: …

Member Avatar for uskok
0
115