What output are you getting? I don't see any quoted. Also, the code you wrote probably doesn't do what you expect. The line "void myFunction(NSArray *array);" really isn't doing anything at all. The semicolon at the end is making that line a function declaration, not a definition. So technically, what's happening is, you enter main(), skip the void line, enter the first brace (which isn't preceded by a conditional or loop, so it's just like its not there), running your for() loop from 0..29, and exiting without a return value.