473,899 Members | 3,826 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

online C programming test

Does anyone know where I can find a good online C programming test?
I used Google to search for

"C programming test"

and found lots of stuff but the first several pages were disappointing.

Nov 14 '05
51 20157
On 5 Feb 2004, MSG wrote:
Neither can anyone else, it seems.


Calling me a liar, heh? Very smooth.

BTW, many == 3 in this case:
Tom wrote "not valid"
Jarno (agreed?)


Minus one: I pointed out that the local variable is inaccessible so
the reasoning doesn't apply.

Nov 14 '05 #41
MSG wrote:
Richard Heathfield <do******@addre ss.co.uk.invali d> wrote in message
news:<bv******* ***@hercules.bt internet.com>.. .
>>
>> Do you have a thread reference for that? A message ID or something?
>
> I can't find it,
Neither can anyone else, it seems.


Calling me a liar, heh? Very smooth.


No, I wasn't. If I think you're lying, I'll say so. I didn't think you were
lying. I did consider the possibility that you were mistaken.
BTW, many == 3 in this case:
Less than half, then. When it's as few as 3, and also less than half the
field, I think I'd baulk at using "many".

<snip>
> I think ERT lacks some social skills, granted, who doesn't? But
> branding him a troll is probably a fruit of groupthink.


Do you? I think you just don't know him well enough.


Even better! Think of me as a juror, not his defense attourney - I
think he's fit to represent himself.


Whatever. Those of us who've been here for a while reached our conclusions
long ago. Like I said - you just don't know him well enough yet. But you
will, you will.

<snip>
BTW, anyone who "knows C" would only find "off-topic" messages
interesting here.


I quite enjoy (and am therefore quite interested in) helping other people to
learn about C. I don't find off-topic messages particularly interesting. So
either your argument is wrong /or/ I don't know C (or, conceivably, both).

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #42
Something that calls itself MSG wrote:
Richard Heathfield wrote:
Mr Tisdale has, of course, already taken that test many times
and failed it many times.
Yes, but others failed it many times as well, sometimes thanks to him,
e.g. when many C people stated that you could not return structs from
functions. I don't want to google, but it went something like this:

struct foo f(void) {
struct foo s;
s.x = x;
s.y = y;
s.z = z;
return s;
}


Actually, it was something like this:

struct x x_create(int a, int b) {
struct x result;
result.a = a;
result.b = b;
return result;
}

Your example is seriously flawed.
Either you are an incompetent C programmer
or your example was a "test" of subscribers' C programming skills.
My guess is that the former (and not the latter) is correct.
*Many* (but not ERT) said you could not do this in C.
So let's be fair here.


1. obvious troll handle: MSG
2. disposable email address: yahoo.com
3. contentious subject: test failure
designed to provoke an emotional response
4. doesn't participate or take a position
in the discussion (remains "aloof").

Please learn to recognize (and ignore) trolls.

Nov 14 '05 #43
Jarno A Wuolijoki wrote:
On 5 Feb 2004, MSG wrote:

BTW, many == 3 in this case:
Tom wrote "not valid"
Jarno (agreed?)


Minus one: I pointed out that the local variable is
inaccessible so the reasoning doesn't apply.


Whereupon Tom (St. Denis), realizing his think-o, withdrew
his original assertion.
Nick implied that returning automatically allocated
structs was undefined
Nick (Landsberg) was responding to something else entirely
in a later post, in which Mr. Tisdale claimed:
You really need to appreciate the *magic*
of a good optimizing C compiler here.
[snip code]
In fact, using my GNU C compiler, I can define

struct x* x_create(struct x*, int, int);

as an external function in another file then declare

extern struct x x_create(int a, int b);


Mr. Landsberg stated (fairly explicitly) that using this
would lead to undefined behavior.

So in the end, it appears that many == 0.

What was your point again?

Nov 14 '05 #44
MSG
"E. Robert Tisdale" <E.************ **@jpl.nasa.gov > wrote in message news:<40******* *******@jpl.nas a.gov>...
Something that calls itself MSG wrote:
Richard Heathfield wrote:
Mr Tisdale has, of course, already taken that test many times
and failed it many times.


Yes, but others failed it many times as well, sometimes thanks to him,
e.g. when many C people stated that you could not return structs from
functions. I don't want to google, but it went something like this:

struct foo f(void) {
struct foo s;
s.x = x;
s.y = y;
s.z = z;
return s;
}


Actually, it was something like this:

struct x x_create(int a, int b) {
struct x result;
result.a = a;
result.b = b;
return result;
}

Your example is seriously flawed.
Either you are an incompetent C programmer
or your example was a "test" of subscribers' C programming skills.
My guess is that the former (and not the latter) is correct.
*Many* (but not ERT) said you could not do this in C.
So let's be fair here.


1. obvious troll handle: MSG
2. disposable email address: yahoo.com
3. contentious subject: test failure
designed to provoke an emotional response
4. doesn't participate or take a position
in the discussion (remains "aloof").

Please learn to recognize (and ignore) trolls.

Dear Sir,

Thank you very much for the timely troll alert, and please accept my
most sincere apologies for all of my misdeads. There is absolutely no
excuse, and I accept full responsibility for my actions and their
consequences. I would like to assure you that I will do my best to
avoid hurting your or anyone's feelings in the future.

Sincerely,
MSG
Nov 14 '05 #45
MSG wrote:
"E. Robert Tisdale" <E.************ **@jpl.nasa.gov > wrote in message
news:<40******* *******@jpl.nas a.gov>...
Something that calls itself MSG wrote:
<snip>
Your example is seriously flawed.
Either you are an incompetent C programmer
or your example was a "test" of subscribers' C programming skills.
My guess is that the former (and not the latter) is correct.
> *Many* (but not ERT) said you could not do this in C.
> So let's be fair here.


1. obvious troll handle: MSG
2. disposable email address: yahoo.com
3. contentious subject: test failure
designed to provoke an emotional response
4. doesn't participate or take a position
in the discussion (remains "aloof").

Please learn to recognize (and ignore) trolls.

Dear Sir,

Thank you very much for the timely troll alert, and please accept my
most sincere apologies for all of my misdeads.


What misdeeds? All you did was try to stick up for ERT - and look how he
treats you in return! But fear not - you are in rather good company.
Several clueful regular contributors to this newsgroup have been called
trolls by ERT. It's his substitute for technical argument.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #46
Richard Heathfield <do******@addre ss.co.uk.invali d> scribbled the following:
MSG wrote:
"E. Robert Tisdale" <E.************ **@jpl.nasa.gov > wrote in message
news:<40******* *******@jpl.nas a.gov>...
Something that calls itself MSG wrote:
<snip>
Your example is seriously flawed.
Either you are an incompetent C programmer
or your example was a "test" of subscribers' C programming skills.
My guess is that the former (and not the latter) is correct.

> *Many* (but not ERT) said you could not do this in C.
> So let's be fair here.

1. obvious troll handle: MSG
2. disposable email address: yahoo.com
3. contentious subject: test failure
designed to provoke an emotional response
4. doesn't participate or take a position
in the discussion (remains "aloof").

Please learn to recognize (and ignore) trolls.
Dear Sir,

Thank you very much for the timely troll alert, and please accept my
most sincere apologies for all of my misdeads.

What misdeeds? All you did was try to stick up for ERT - and look how he
treats you in return! But fear not - you are in rather good company.
Several clueful regular contributors to this newsgroup have been called
trolls by ERT. It's his substitute for technical argument.


Hey! No fair! Trollsdale hasn't called *me* a troll yet! Come on,
Trollsdale! Call me a troll! I'm using an obvious troll handle (my
real name), a disposable e-mail address (.helsinki.fi) and everything!

--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"Nothing lasts forever - so why not destroy it now?"
- Quake
Nov 14 '05 #47
"E. Robert Tisdale" <E.************ **@jpl.nasa.gov > wrote in message news:<40******* *******@jpl.nas a.gov>...
Something that calls itself MSG wrote:
Richard Heathfield wrote:
Mr Tisdale has, of course, already taken that test many times
and failed it many times.
Yes, but others failed it many times as well, sometimes thanks to him,
e.g. when many C people stated that you could not return structs from
functions. I don't want to google, but it went something like this:

struct foo f(void) {
struct foo s;
s.x = x;
s.y = y;
s.z = z;
return s;
}

If x,y and z are global variables accessible at that point in the
program, there is absolutely no reason why this is flawed.

Actually, it was something like this:

struct x x_create(int a, int b) {
struct x result;
result.a = a;
result.b = b;
return result;
}

Your example is seriously flawed.
Either you are an incompetent C programmer
or your example was a "test" of subscribers' C programming skills.
My guess is that the former (and not the latter) is correct.
*Many* (but not ERT) said you could not do this in C.
So let's be fair here.


1. obvious troll handle: MSG
2. disposable email address: yahoo.com
3. contentious subject: test failure
designed to provoke an emotional response
4. doesn't participate or take a position
in the discussion (remains "aloof").

Please learn to recognize (and ignore) trolls.

Nov 14 '05 #48
"Peter Pichler" <pi*****@pobox. sk> wrote in message news:<4020324b_ 1@mk-nntp-
Not wanting to defend Mr ERT, I must regretfully say that most GPL code I
have seen looks worse. Moreover it is usually highly non-portable. Is there
a clause in GPL that I missed that says that the source must be unreadable?

Peter


Ah, I'm relieved to hear it's not just me. I _though_ C didn't have to
look like that.

Do you have any good counterexamples ? I'd like to take a look at some
real quality C code someday.
Nov 14 '05 #49
Harald Korneliussen wrote:
"Peter Pichler" <pi*****@pobox. sk> wrote
Not wanting to defend Mr ERT, I must regretfully say that most
GPL code I have seen looks worse. Moreover it is usually highly
non-portable. Is there a clause in GPL that I missed that says
that the source must be unreadable?


Ah, I'm relieved to hear it's not just me. I _though_ C didn't
have to look like that.

Do you have any good counterexamples ? I'd like to take a look
at some real quality C code someday.


do {
Pick any regular here who publishes a URL.
Look for code published under GPL etc.
Evaluate portability and clarity for yourself.
} while not satisfied.

Most of us take pride in those characteristics .

--
Chuck F (cb********@yah oo.com) (cb********@wor ldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net> USE worldnet address!
Nov 14 '05 #50

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

Similar topics

1
2174
by: vpd | last post by:
hi, I want some help in organising an online programming contest. Is there a ready made solution available in PHP or even Perl which I could use? The contest is supposed to be based on C programming and the solutions submitted by the participants must be compiled, executed and the marks shall be allocated automatically. I want some urgent help as the contest is supposed to be organised in just a couple of days. Any suggestions and...
13
2734
by: Varun | last post by:
Hi Friends, Department of Information Technology, Madras Institute of Technology, Anna University, India is conducting a technical symposium, Samhita. As a part of samhita, an Online Programming Contest is scheduled on Sunday, 27 Feb 2005. This is the first Online Programming Contest in India to support Python !!!!. Other languages supported are C and C++.
0
1341
by: Sridhar | last post by:
Hi, We, the students of CEG, Anna University are organizing an online programming contest as part of aBaCus 2005. The contest itself will start on 6th March 2005 at 1:00 pm IST and will end after 5 hours. You have to solve the problems posted at the start of the contest. Teams ranking high will be awarded the prizes. As a special note, inspite of C,C++ and Java we also allow Python this time. So we hope a lot of Pythonistas...
0
1625
by: Sridhar | last post by:
Hi, We, the students of CEG, Anna University are organizing an online programming contest as part of aBaCus 2005. The contest itself will start on 6th March 2005 at 1:00 pm IST and will end after 5 hours. You have to solve the problems posted at the start of the contest. Teams ranking high will be awared the prizes. As a special note, inspite of C,C++ and Java we also allow Python this time. So we hope a lot of Pythonistas...
14
1678
by: pravink | last post by:
Hi all, I am interested in knowing any periodic (montly/weekly) programming challeages held on internet...Does anybody know about such sites? Focus should be on algorithm development and programming skills. For example, I found this (http://www.mactech.com/progchallenge/)...but seems they have stopped it now... thanks in advance, pravink
2
5867
by: aarklon | last post by:
Hi folks , Online C test at: http://www.testyourabilities.com/webui/TestDesktop/Screens/Test.aspx
0
1367
by: Romram | last post by:
BITWISE is an annual online programming contest. The contest is organized by the Computer Science and Engineering Department Society of IIT Kharagpur, on the second Sunday of February every year. The contest is time constrained and you would be expected to submit solutions to some of the toughest programming and algorithms challenges in a short span of 12 hours. Prizes worth 120,000 Rs or $2600 at stake. Visit...
0
1335
by: Turbo | last post by:
Please ignore if you are not interested in programming contests. IIIT Hyderabad invites you to our annual Online Programming Contest CodeCraft 2007. This is the 5th year of Codecraft. It has grown over the years and has witnessed huge participation on a global scale. The contest is known for having a high quality problemset. It will be held on February 21st, 2007, 6 PM - 12 AM IST. ( GMT 1230 hrs - 1830 hrs).
0
9997
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9843
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11272
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10863
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7201
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5887
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4720
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3317
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.