Search:

Type: Posts; User: mikemhz

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    3,607

    Unexplained crashes with GCC...

    Hey,

    This is the output if my code on Codepad, with no user inputs (dex=2, input = 'tap').



    Here's my entire code:


    #include <stdio.h>
  2. Good shout. Thanks :) Would you mind...

    Good shout. Thanks :)

    Would you mind clarifying what an array of strings is, other than a pointer?

    I understand that int array[5]; is used like a pointer...

    e.g.


    func(int * a){
  3. Ok mate, just saying. Who knows, you might need...

    Ok mate, just saying. Who knows, you might need to play around with it to come up with a solution yourself... I thought I was doing you a favour, not asking you to do my homework for me...

    Thank...
  4. fixed

    fixed
  5. #include #define AL 100 #define...

    #include <stdio.h>


    #define AL 100
    #define SL 32


    int main(){
    char array[AL][SL] = { "at", "be", "funzey", "zebra" };
    int i,used = 0;
  6. Printing an array of strings until array == NULL

    Hi,

    I have a weird problem that I have no idea how to solve.

    Here's the code and the output: C code - 19 lines - codepad

    The jist of my problem is that:


    while(array[i][SL] > 0){
  7. Thread: Bubblesort

    by mikemhz
    Replies
    7
    Views
    1,886

    Bubblesort

    Hi all,

    I'm learning C for the first time as part of my engineering degree and one of my labs recently required that I write a Bubblesort algorithm (to demonstrate my use of pointers e.t.c.). But...
Results 1 to 7 of 7