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! =----- 6 1179
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 =---
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
> 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! =-----
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
by: rlzsmith |
last post by:
Does the standard edition have a visual windows forms developer
Thanks.
|
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...
|
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...
|
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
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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,...
| |