Search:

Type: Posts; User: sashaKap

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,083

    Although you did mention that you were looking...

    Although you did mention that you were looking for a way to have you function return an array, rather than pass a pointer to an array to the function being called, I thought I'd offer a sample...
  2. Replies
    3
    Views
    31,983

    Hi, I'm new to C as well. Sorry if my suggestion...

    Hi,
    I'm new to C as well. Sorry if my suggestion turns out to be wrong.
    As far as I understand, for a function to return an array it should be declared as returning a pointer to a desired type, in...
  3. Replies
    6
    Views
    3,602

    Thanks a lot!

    Thanks a lot!
  4. Replies
    6
    Views
    3,602

    Thanks for getting back to me. Your input is much...

    Thanks for getting back to me. Your input is much appreciated!
  5. Replies
    6
    Views
    3,602

    Thanks for getting back to me, Adak. Please see...

    Thanks for getting back to me, Adak. Please see the code below. Is this what you had in mind? Thanks.


    /* pe6b_new.c -- Write a program that initializes
    * a two-dimensional array-of-double and...
  6. Replies
    6
    Views
    3,602

    protecting array contents

    Hi,
    I've done a programming exercise from a book on C programming (see code below). It compiles and runs. What I wanted to ask about was I get some compiler warnings and I can't figure out why they...
  7. Replies
    6
    Views
    4,365

    thanks for your input once again! about having...

    thanks for your input once again!
    about having the program end when it reaches a new line...
    why is it better? is it because the program assumes that the input will come from the keyboard? i've...
  8. Replies
    6
    Views
    4,365

    Hi. Thanks for replying to my post about input...

    Hi. Thanks for replying to my post about input redirection. i've posted the new version of the program based on the input given by yourself as well as another member. Would you mind having a look at...
  9. Replies
    6
    Views
    4,365

    thanks for help with question about input redirection

    thanks a lot to all those who have responded to my query about input redirection. sorry for the delay in replying to your messages.
    here's the new version of my program. is this what you had in...
  10. Replies
    6
    Views
    4,365

    input redirection

    Hi,
    Please find below the code for an exercise I had to do as part of a course book I use to learn C.
    The program is to accept input from an ASCII text file using redirection, count the number of...
  11. Replies
    2
    Views
    14,604

    Thanks a lot. I'll have a look at that.

    Thanks a lot. I'll have a look at that.
  12. Replies
    2
    Views
    14,604

    Design patterns in C

    Hi,
    I was wondering if there was such a thing as design patterns in C as there is in some object-oriented languages.
    If it is available in C, I'd appreciate someone referring me to some web-based...
  13. Replies
    4
    Views
    2,023

    Thanks a lot. It's clear as day now :-))

    Thanks a lot. It's clear as day now :-))
  14. Replies
    4
    Views
    2,023

    No more warnings given by the compiler. Thanks a...

    No more warnings given by the compiler. Thanks a lot :-))

    Quick follow up question about the output of the program, if I may.

    Output of printf("\nPointer value: %d, points at value: %d\n\n",...
  15. Replies
    4
    Views
    2,023

    question about a compiler warning

    Here's a simple program that uses a pointer. The program compiles but issues this warning. The compiler I use is gcc.

    gcc -g -ansi -pedantic -Wall ex9-2-4.c -o ex9-2-4
    ex9-2-4.c: In function...
  16. Replies
    19
    Views
    2,261

    Understood. Thanks a lot:-))

    Understood. Thanks a lot:-))
  17. Replies
    19
    Views
    2,261

    Thanks for commenting on my post. It looks like...

    Thanks for commenting on my post. It looks like scanf() only retains the new-line character if the input being read in is of type char. Is that correct?
  18. Replies
    19
    Views
    2,261

    Thanks a lot:-))

    Thanks a lot:-))
  19. Replies
    19
    Views
    2,261

    As far as I can tell it doesn't. Feel free to run...

    As far as I can tell it doesn't. Feel free to run it yourself. Let me know if you find it otherwise, if you please. Thanks for getting back to me about my post.
  20. Replies
    19
    Views
    2,261

    an improved version of ex7-12b.c for anyone interested

    /* ex7-12b.c: Write a program that inputs integers from the keyboard, storing them in an array. Input should stop when a zero is entered or when the end of the array is reached. Then, find and...
  21. Replies
    19
    Views
    2,261

    No worries at all. Where are you from, if you...

    No worries at all. Where are you from, if you don't mind me asking?
  22. Replies
    19
    Views
    2,261

    I am aware that in the English-speaking world...

    I am aware that in the English-speaking world Sasha is usually considered to be a girl's name. Where I come from, Sasha is both a man's as well as a woman's name and is short for Alexander. Sorry for...
  23. Replies
    19
    Views
    2,261

    working version of program from my previous post.

    Thought I'd post the version of the program from the previous post that works. Anyone is welcome to comment on the implementation of the task. Thanks.


    /* ex7-12b.c: Write a program that inputs...
  24. Replies
    19
    Views
    2,261

    Thanks very much to all those who have replied to...

    Thanks very much to all those who have replied to my post. I'll give all those things a try.
  25. Replies
    19
    Views
    2,261

    need help with arrays please

    Hi. I am a beginning C programmer. I have a question about arrays. Below is a program I wrote as part of my learning routine. I don't know yet how to get it to exit when zero is entered from the...
Results 1 to 25 of 26
Page 1 of 2 1 2