Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > function call with arguments which takes no arguments

Reply
Thread Tools

function call with arguments which takes no arguments

 
 
sushant
Guest
Posts: n/a
 
      01-20-2005
if you dont want to pass any arguments then u have to
explicitly mention the keyword void with the function name
i.e. func( void ), otherwise it'll take any type n any num of
arguments
.. this is C89 but in C99 it'll give u the error as u were
expecting ...

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call again a variadic function (... variable number of arguments)with same arguments that its variadic wrapper moreau.steve@gmail.com C Programming 3 12-31-2008 07:13 AM
How to call function whose function call with arguments is in astring Options grbgooglefan C Programming 4 01-30-2008 05:12 PM
How to call function whose function call with arguments is in astring grbgooglefan C++ 2 01-30-2008 07:18 AM
How to call function whose function call with arguments is in astring Options grbgooglefan C Programming 0 01-30-2008 04:19 AM
number of arguments a function takes Elaine Jackson Python 6 01-30-2004 10:26 PM



Advertisments