function calling question

This is a discussion on function calling question within the C Programming forums, part of the General Programming Boards category; nvm figured it out...

  1. #1
    Registered User
    Join Date
    Mar 2013

    function calling question

    nvm figured it out
    Last edited by dwainbro; 04-06-2013 at 05:16 PM.

  2. #2
    Registered User
    Join Date
    Jun 2005
    You're kidding right?

    Firstly, the number of iterations in the first loop is given by a[0]/2. It needs to be related to the actual length of the array.

    Second, the printf() statement in main() is printing the address of a function (s) as an int.

    Depending on your compiler and compiler settings, a lot of compilers would have given extensively warnings about the second problem.
    Right 98% of the time, and don't care about the other 3%.

  3. #3
    Registered User
    Join Date
    Dec 2012
    Quote Originally Posted by dwainbro View Post
    nvm figured it out
    wow, deleted his entire post so no one can see how f-uped he is, and learn from him.....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Calling to Function & Expression question
    By ilans11il in forum C Programming
    Replies: 1
    Last Post: 03-20-2013, 03:51 AM
  2. Replies: 15
    Last Post: 06-09-2009, 02:19 AM
  3. Calling Cdocument function in Cview function
    By RancidWannaRiot in forum Windows Programming
    Replies: 5
    Last Post: 09-22-2005, 12:09 PM
  4. Question about function calling
    By homeyg in forum C++ Programming
    Replies: 3
    Last Post: 12-17-2004, 04:31 PM
  5. Question on function syntax and calling function
    By cbrman in forum C Programming
    Replies: 10
    Last Post: 10-05-2003, 05:32 PM

Tags for this Thread

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21