Search:

Type: Posts; User: dukester

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    1,453

    Don't know!!! But .... I can tell you that I...

    Don't know!!! But ....

    I can tell you that I use SciTE as my go-to editor! Here's the complete output:


    >gcc -Os -std=c99 -pedantic test-pointers3.c -o test-pointers3
    test-pointers3.c: In...
  2. Replies
    13
    Views
    1,453

    I've tried that, and although it compiles, I get...

    I've tried that, and although it compiles, I get the same warning:

    warning: format ‘%p’ expects argument of type ‘void *’, but argument 2 has type ‘int **’ [-Wformat]

    So casting to (void *)...
  3. Replies
    8
    Views
    7,400

    The following should help me and others: C...

    The following should help me and others:

    C Printf and Scanf Reference
  4. Replies
    8
    Views
    7,400

    I should explain the situation a bit more clearly...

    I should explain the situation a bit more clearly ....

    My original test code was:



    #include <stdio.h>

    int main(int argc, char *argv[])
    {
  5. Replies
    8
    Views
    7,400

    For example: #include int...

    For example:



    #include <stdio.h>

    int main(int argc, char *argv[])
    {
    int x;
    int *ptr;
  6. Replies
    8
    Views
    7,400

    scanf return code

    Using the latest gcc incarnation, why wouldn't the following work??


    (void) scanf("%d", &blah);

    gcc keeps on barfing up the "unused value" warning....

    It'll shut up, if I test the return...
  7. Replies
    13
    Views
    1,453

    Thanks! I'll have to give that a try .... ...

    Thanks! I'll have to give that a try ....



    You bet!! I have that commented out in my code. I had tried it out both ways ...

    Thanks for the input!
  8. Replies
    13
    Views
    1,453

    Pointers: Am I finally grokking them??

    Does this code that I cranked out give some indication that I'm getting it, or am I just dreaming in Technicolor?



    #include <stdio.h>

    int main(int argc, char *argv[])
    {
    int myAge = 65;...
  9. Replies
    3
    Views
    1,014

    @Bayint Naung printf(" sum = %d &sum = %p...

    @Bayint Naung


    printf(" sum = %d &sum = %p \n", sum, (void*)&sum);

    did the trick! Thanks!
    --
    Duke
  10. Replies
    3
    Views
    1,014

    Sooo many details to learn for a noob! :) Thanks!...

    Sooo many details to learn for a noob! :) Thanks! I'll flip to the 'casting' section of the tutorial, and add to the growing body of knowledge/frustration? :))

    BTW , I bookmarked the above URL....
  11. Replies
    3
    Views
    1,014

    printf warning message

    hey ...

    Here's the warning:


    warning: format ‘%p’ expects type ‘void *’, but argument 2 has type ‘int *’

    Here's the code
  12. Replies
    17
    Views
    2,606

    C++ Utopia?? :D OK! OK! I'll burn the Turbo C...

    C++ Utopia?? :D

    OK! OK! I'll burn the Turbo C Manuals - along with all the other OOP detritus that has accumulated in my den over the years. :)
  13. Replies
    17
    Views
    2,606

    @Bayint Naung What you say may all be true!...

    @Bayint Naung

    What you say may all be true! I'm not suggesting that I would/want to use Turbo C for production work - just as a learning tool. However, the point is moot! Like I said, I'll most...
  14. Replies
    17
    Views
    2,606

    FYI - to those who have been following this...

    FYI - to those who have been following this thread ...

    Turbo C v2.01 loads and runs normally on my AMD Athlon XP 2000+ based machine running XP Home. As well, it compiles C code - no probs! The...
  15. Replies
    17
    Views
    2,606

    I just had a quick "boo" at the Pelles Forum....

    I just had a quick "boo" at the Pelles Forum. Seems that joint is overrun with "spuds" too. :)
    Thanks for the extra info.
    --
    Duke
  16. Replies
    4
    Views
    1,385

    Saw you comments regarding Pelles C -- thanks!...

    Saw you comments regarding Pelles C -- thanks!
    --
    Duke
  17. Replies
    17
    Views
    2,606

    @CommonTater Much obliged! Looks pretty darn...

    @CommonTater
    Much obliged! Looks pretty darn good ...
    --
    Duke
  18. Replies
    17
    Views
    2,606

    @jimblumberg I'm convinced! :) -- Duke

    @jimblumberg
    I'm convinced! :)
    --
    Duke
  19. Replies
    17
    Views
    2,606

    @staha01 I almost sure that Salem is going to...

    @staha01
    I almost sure that Salem is going to jump in and "second" your recommendation! :D Thanks!
  20. Replies
    4
    Views
    1,385

    @Salem Your reply here might just have answered...

    @Salem
    Your reply here might just have answered my question about using Turbo C (and it's manuals) in another thread :)

    Funny thing though - the code compiles under Linux (gcc) with no warnings...
  21. Replies
    17
    Views
    2,606

    Turbo C 2.01 - use it or shun it?

    hey ...

    I happen to have Turbo C c/w the manuals. Although I'm on *nix 99% of the time, I do have XP on a separate partition. Will Turbo C complicate my C learning process more than help it, in...
  22. Replies
    4
    Views
    1,385

    pointers & malloc test code

    Hello list ...

    I think I'm grokking it - but please critique the following code and comments therein:



    /*
    program to demonstrate the use of pointers and
    malloc to dynamically allocate...
  23. Replies
    24
    Views
    7,794

    As a former USMC enlistee with his "gold wings",...

    As a former USMC enlistee with his "gold wings", I can say that the first time I jumped out I was scared. The 2nd time, that sorry-ass Jump Master had to push me and a bunch of others out. :)) Dirty...
  24. Replies
    24
    Views
    7,794

    @Tater Aaah! Come on! Don't the OOP guys do...

    @Tater
    Aaah! Come on! Don't the OOP guys do _that_ all the time? :)
    --
    Duke
  25. Replies
    24
    Views
    7,794

    @Tater Yeh! You're right! Not worth the bother....

    @Tater
    Yeh! You're right! Not worth the bother.

    I know _some_ C :) I'm fluent in Perl and PHP; learning Ruby at the moment. Can also get by in newLISP. So I'm not totally clueless - but yeh!...
Results 1 to 25 of 34
Page 1 of 2 1 2