Forum: C Dec 2nd, 2008 |
| Replies: 5 Views: 1,060 Hi.
This is NOT a homework assignment (self-interest only).
The exercise asks me to write a function which accepts two strings and returns a pointer to the longer of the two.
#include... |
Forum: C Dec 1st, 2008 |
| Replies: 3 Views: 591 Hi.
I recently read that using the name of an array without brackets was one method for accessing the <address> of the array's first element. E.g:
#include <stdio.h>
int arr[5] = { 2, 4, 6,... |
Forum: C Jul 16th, 2008 |
| Replies: 3 Views: 1,176 Hi.
The objective os to open a file and print 55 lines of content at a time. Since I am still learning 'C', my code (thus far) may appear slightly neophytic ;)
#include <stdio.h>
#include... |
Forum: C Jul 10th, 2008 |
| Replies: 5 Views: 936 Thanks for the help Dave.
Looking at the initial exercise, it reads:
Write a program that uses pointers to type double variables to accept 10 numbers from the user, sort them, and print them to... |
Forum: C Jul 9th, 2008 |
| Replies: 5 Views: 936 Hi.
The objective is to sort an array of doubles. My effort is listed below:
#include <stdio.h>
#define MAX 10
void sort( double* n[], int q );
void print_nums( double* n[], int q ); |
Forum: C Jul 8th, 2008 |
| Replies: 1 Views: 1,973 Hi.
Objective: Write a program that declares a 12*12 array of characters. Place Xs in every other element. Use a pointer to the array to print the values to the screen in a grid format.
Listed... |