Hows this... it works
#include <stdio.h>
void display_union(char c, short s, int i, long l);
union integer_union {
char c;
Type: Posts; User: Sure
Hows this... it works
#include <stdio.h>
void display_union(char c, short s, int i, long l);
union integer_union {
char c;
well still dont understand ... no diff in codes.. damn it .. brain hurts
If i do something like this it messes up
#include <stdio.h>
void display_union();
union integer_union {
char c;
What i Gotta DO:
Your solution must include a function called displayUnion() which will take a integer_union variable as a parameter. The function will have simply 4 printf statements, and nothing...
k thx bro ....
What i gotta do:
Write a program that inputs a tele phone #as astring in the form (555)555-5555. The program should use function strok() to extract the area code as a token , the first three...
got er thx....
well a no go ...need some help
What i gotta do:
Write a program that inputs a line of text, tokenizes the line with the strtok() function and outputs the tokens in reverse order. For example the input string: "The quick brown...
Thx prelude, and i will tell my teacher bout the gets()
As i stated b4 i have to use the gets() and the strncmp(), and the code prelude gave still dosnt pass the tests outlined......
Well got it to work without errors but it dosnt pass the tests
Test your solution with the following test data:
aab
aabb //should be equal
abcde
abcdf // second string should be greater
so i could use strlen() to determine the length of the string?
its basically the same , jus cahnged %s to %d and thats all i know ... the text isnt even helpin
well still cant figure it out.....
thx for the ideas ill give it a shot
i have to use the gets() and the strncmp() functions in this program....
WHAT I GOTTA DO:
Write a program that uses the C string library strncmp() function to compare two strings input by the user. The number of characters to be compared should be the length of the...
This is what i gotta do:
Create a C function called SecondsSinceMidnight() that has 3 parameters of type "long". The 3 parameters will be: "hours", "minutes" and "seconds". This function will use...
thx bro....... haha wut a simple mistake ..... awell thx for the correction
What i gotta do:
Write a function called "integerPower(base, exponent)" that calculates and then returns the value of base to the power exponent. For example, if you invoke the function in the...
Thx bro i changed it to this seems to bw working fine:
#include <stdio.h>
int main()
{
sorry forgot to read the faq's my bad
it works but need to refiine it a bit
What i need to do:
The factorial of a non-negative integer n is written n! (pronounced "n factorial") and is defined as follows:
n! = n * (n-1) *...