Quote:
Very good. And what is the source code of that C program? It's true Shabbir didn't actually say "and post the code here", but that could reasonably be implied, also how is he going to judge your code if he can't see it?
|
Banned
|
|
| 9Sep2009,14:30 | #11 |
|
Quote:
|
|
Contributor
|
|
| 10Sep2009,10:55 | #12 |
|
Hi Shabbir,
What is the answer of this question? |
|
Go4Expert Founder
|
![]() |
| 10Sep2009,16:54 | #13 |
|
Looks like Saswat but I am not on Linux and so is not able to verify what he said.
|
|
~ Б0ЯИ Τ0 С0δЭ ~
|
![]() |
| 10Sep2009,18:27 | #14 |
|
It can be verified on Windows also
![]() All chars in the file-name are perfectly fine on Windows XP. BTW, her is the source :: http://everything2.com/title/The+Wor...st+Hello+World And, I think xpi0t0s and/or someone else might verify and post the result here too.
|
|
Mentor
|
![]() |
| 10Sep2009,20:12 | #15 |
|
I haven't said anything because I don't think it would work. But I don't have a Linux or MinGW installation handy to try it.
Saswat, to convince me* you should post a screen shot that shows it working. Use four commands: ls cat <filename> <the gcc command> <invoke the executable so we can see the output> *Not that it's me that needs convincing. But I think this would convince anyone. |
|
Banned
|
|
| 14Sep2009,09:18 | #16 |
|
So, what's the final answer for this ?
|
|
~ Б0ЯИ Τ0 С0δЭ ~
|
![]() |
| 14Sep2009,19:35 | #18 |
|
Thanx for accepting my answer
![]() But ... Quote:
Originally Posted by SaswatPadhi And as xpi0t0s thinks it won't work, it might not. I just read it here : http://everything2.com/title/The+Wor...st+Hello+World Anyway, one thing is clear from the code that it is not according to the latest ANSI C specs, 'cuz it still uses void main() and not int main(). Anyway, the shortest working (confirmed) "Hello G4EF" program in ANSI C will be : Code: C
![]() NOTE that you don't need to do these : (*) #include <stdio.h> (*) int in-front of main. (*) return 0 (*) New lines at end of statements They reduce the code length further. |
|
Mentor
|
![]() |
| 14Sep2009,21:05 | #19 |
|
I think it won't work because there are missing quotes:
Code:
puts(Hello, World!) |
|
Banned
|
|
| 15Sep2009,14:13 | #20 |
|
Congrs SP
|