Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Why this give error message within the C and C++ forums, part of the Software Development category; C question void main() { void f(static int ); f(3); } void f(static int a) { printf("%d",a); } why this give error message ?...
|
|||||||
|
|||
|
Re: Why this give error message
void f(int a);
int main() { f(3); } void f(int a) { printf("%d",a); }
Last edited by datdo; 01-29-2009 at 06:10 PM. |
|
|||
|
Re: Why this give error message
Hi,
static is not a DataType it's a storage class. So u can't declare any function with argument static, but u can pass any static variable to that function. example : Quote:
|
|
|||
|
It does not contain any error. It have a warning message that can be romoved by making return type of main as void.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| while creating a new domain error message is displayed <Unexpected Error> | zubi_ste | Test Director | 1 | 10-16-2009 08:35 AM |
| error message | sairamjyothi | Oracle Certification | 5 | 08-30-2008 03:48 AM |
| Error Message | ramyamca1984 | QTP | 0 | 04-23-2008 07:38 AM |
| About the log out error Message of this website | krishna1tester | Testing Issues | 5 | 03-26-2008 05:48 AM |
| Error Message | krishnaindia2007 | Oracle | 3 | 03-04-2008 02:53 PM |