the thing is im running out of time, my test is tomorrow. and i tried doing this already. this is what i came up but im getting segmentation fault error.
while (i<=size)
{
...
Type: Posts; User: dbzx
the thing is im running out of time, my test is tomorrow. and i tried doing this already. this is what i came up but im getting segmentation fault error.
while (i<=size)
{
...
how would i do that? because i am totally lost with this stuff.
hi everyone,
I have a hard time understanding structs, dynamic memory allocation, and linked list.
Please explain to me what is going on in the following code.
Also the question ask to me to...
nvm i figured it out, but thanks anyways.
basically, im trying to get my program to print list of students with a specified year. for example, if the specified year = junior, then the program will print all the junior students in the list.
...
Hi, I am trying to write a function that locate the last occurence of a string without using string library. Also, i would like to use pointers but I am getting "Segmentation Fault" every time i run...
Hi all,
I am trying to write a function that uses pointers to count the chars 'a', 'b', and 'c' in an input string.
heres my code. Thanks in advance
void count_abc(char *str, int *a, int...
okay, so I have no idea on how this would work. Im suppose to use convert binary to decimal then decimal to octal. i got the binary to decimal part but the decimal to octal part confuses me. the...
umm yes. and im stuck on the same part. i can get the max value but not the min.
Hey guys,
My program basically accepts an index(less than 46) and determine whether it's fibonacci number is prime or not . i am basically done with my program which determine whether the but its...
i finally found out the reason. i changed the first 2 functions which return 0 to void functions because all it does it print stuff. anyways, thanks for all the input.
yes i am 100 percent positive. like i said, this program works with no issues on the IDE, Dev C++, just for some reason the Unix Server is being retarded....
thanks for the input but that didnt solve the problem. and it seems like after a certain choice, it will give me a different sum. (eg. choice 1 then 4, sum will be 77, choice 2 then 4 = 77, choice 3...
So my program basically allows the user to enter a positive integer and then a menu will pop up like this:
Enter a positive integer: 11
1. Is the given number an even or an odd...
I am trying to create a function inside my program that calculates a number in base 8(eg. 11 in base 8 is 13), but I dont know how this conversion works. I just need the method conversion, the code...
okay so i fixed it up but for some reason its not printing.
please help,
#include <stdio.h>
int main()
{
int a, b, max, min, results, count;
max = 2000000000;
Okay so I am suppose to write a program that divides two numbers without using the operator "/"
So i try writing the program using repeated subtraction, but I dont know if I am doing this right at...
just convert both of them to binary and do as ulillillia told and after the result convert it to decimal.
sorry for more questions but how would i know what the binary of each number is? and how...
okay i get the binary part. what bout changing it to decimal? how would i know what number wud it return?
Okay so I know there are four operations, but I dont get how these work. Can someone please explain how these work in binary terms and decimal terms?
Well for binary terms, I kind of get it but...
thanks, that really did the work.
so I am trying to make a triangle in which :
1. The number of elements in a row is equal to the row number
2. Each element is the product of the row number by the column number.
Example...
So my homework is:
1. Your program will accept a sequence of positive integers (no greater than 2000000000, though your program does not need to check) until it sees an input of 100 for the second...