Basic and Advance C Question: Download Questions PDF
Why isnt my procedure call working? The compiler seems to skip right over it
Answer:
Does the code look like this?
myprocedure;
C has only functions, and function calls always require parenthesized argument lists, even if empty. Use
myprocedure();
Without the parentheses, the reference to the function name simply generates a pointer to the function, which is then discarded.
myprocedure;
C has only functions, and function calls always require parenthesized argument lists, even if empty. Use
myprocedure();
Without the parentheses, the reference to the function name simply generates a pointer to the function, which is then discarded.
Download C Programming Interview Questions And Answers
PDF
Previous Question | Next Question |
This program crashes before it even runs! | I am getting baffling syntax errors which make no sense at all |