473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Standard question

I think I have a standard question here. ISO or ANSI. Some of the developers
on this site have shown me code in this form

int name(int x,y);

Now my compiler just will not accept that. It has to be
int name (int x,int y);

Is my compiler a C99 compiler?

Bill

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 14 '05 #1
6 1179
In 'comp.lang.c', "Bill Cunningham" <no****@nspam.net> wrote:
I think I have a standard question here. ISO or ANSI. Some of the
developers on this site have shown me code in this form
What site ?
int name(int x,y);
AFAIK, this is incorrect C.
Now my compiler just will not accept that. It has to be
int name (int x,int y);


Sounds correct to me.

--
-ed- em**********@noos.fr [remove YOURBRA before answering me]
The C-language FAQ: http://www.eskimo.com/~scs/C-faq/top.html
C-reference: http://www.dinkumware.com/manuals/reader.aspx?lib=cpp
FAQ de f.c.l.c : http://www.isty-info.uvsq.fr/~rumeau/fclc/
Nov 14 '05 #2
On Sun, 29 Feb 2004 01:24:04 -0500, in comp.lang.c , "Bill Cunningham"
<no****@nspam.net> wrote:
I think I have a standard question here. ISO or ANSI. Some of the developers
on this site have shown me code in this form

int name(int x,y);

Now my compiler just will not accept that. It has to be
int name (int x,int y);

Is my compiler a C99 compiler?


No, its just a C compiler. The first form is illegal.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 14 '05 #3
On Sun, 29 Feb 2004 01:24:04 -0500, "Bill Cunningham" <no****@nspam.net>
wrote:
I think I have a standard question here. ISO or ANSI. Some of the developers
on this site have shown me code in this form

int name(int x,y);


Are you sure you weren't perhaps shown this:

int name(x, y)
int x,y;
{
...
}

which is and old-style ("K&R", or Classic) C construct grandfathered in to
even the current standard?
-leor
Leor Zolman
BD Software
le**@bdsoft.com
www.bdsoft.com -- On-Site Training in C/C++, Java, Perl & Unix
C++ users: Download BD Software's free STL Error Message
Decryptor at www.bdsoft.com/tools/stlfilt.html
Nov 14 '05 #4
> Are you sure you weren't perhaps shown this:

int name(x, y)
int x,y;
{
...
}

which is and old-style ("K&R", or Classic) C construct grandfathered in to
even the current standard?
-leor


I don't think so. I've never written source like that. I don't think I'd
recognize it especially if it's classic k&r.

Bill

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 14 '05 #5
On Sun, 29 Feb 2004 11:44:28 -0500, "Bill Cunningham" <no****@nspam.net>
wrote:
Are you sure you weren't perhaps shown this:

int name(x, y)
int x,y;
{
...
}

which is and old-style ("K&R", or Classic) C construct grandfathered in to
even the current standard?
-leor


I don't think so. I've never written source like that. I don't think I'd
recognize it especially if it's classic k&r.


Just a shot in the dark. That's about the only declaration-related place I
could think of that something structured like that /might/ be legal...
-leor

Leor Zolman
BD Software
le**@bdsoft.com
www.bdsoft.com -- On-Site Training in C/C++, Java, Perl & Unix
C++ users: Download BD Software's free STL Error Message
Decryptor at www.bdsoft.com/tools/stlfilt.html
Nov 14 '05 #6
In <40**********@corp.newsgroups.com> "Bill Cunningham" <no****@nspam.net> writes:
I think I have a standard question here. ISO or ANSI.
Nope, you don't. You have a plain C question and any decent C book
provides the answer.
Some of the developers
on this site have shown me code in this form

int name(int x,y);

Now my compiler just will not accept that. It has to be
int name (int x,int y);

Is my compiler a C99 compiler?


Dunno. All I know for sure is that you're too lazy to bother opening a
C book before posting here.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Andres Eduardo Hernando | last post by:
Hi, I'm not entirely sure this is the right group to ask this question, but I saw a similar one above, and the group's charter is not clear enough about it, so, here I go: ;) What is the...
3
by: rlzsmith | last post by:
Does the standard edition have a visual windows forms developer Thanks.
43
by: Steven T. Hatton | last post by:
Now that I have a better grasp of the scope and capabilities of the C++ Standard Library, I understand that products such as Qt actually provide much of the same functionality through their own...
7
by: Tao Wang | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I saw cuj's conformance roundup, but the result is quite old. I think many people like me want to know newer c++ standard conformance test...
11
by: BilfFord X | last post by:
If I # include "text.h" , where text.h consists of the following: # define NOTHING_IMPORTANT # include <stdio.h> , am I writing c++? cordially, bfx
21
by: Kannan | last post by:
Its been a while I have done pure C programming (I was coding in C++). Is the following function valid according to standard C? int main(int argc, char *argv) { int x; x = 9; printf("Value...
56
by: Chris Hills | last post by:
Hi, It came up in a standards panel meeting the other day that "all c or C++ programmers" have a copy of ISO C and/or C++ ... I challenged this and said most don't (outside those working on...
31
by: Francine.Neary | last post by:
One interesting thing to come out of the recent "Alignment" thread is that it is impossible to write a portable replacement for malloc in "user space" (not sure what the right term is - I mean an...
14
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, In my windows applicationm, i need to excute a batch file. this batch file throws some text and questions to the screen, i need to catch the standard Output, check if it's a question, in...
18
by: Stephan Beal | last post by:
Hi, all! Before i ask my question, i want to clarify that my question is not about the code i will show, but about what the C Standard says should happen. A week or so ago it occurred to me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.