|
Hello Freinds,
main(){} - > YOU WROTE A PROGRAM
~~~~~ HAVE A NICE TIME ~~~~~
CodeTheDreams();
|
|
|
|
|
Renjith R wrote:
this is the smallest Program in C What u says ?
Big deal!
Seriously, no standard compiler would allow you to compile that - you should have a
return 0;
Are you using TurboC++ ?
Vikram.
-----------------------------
1. Don't ask unnecessary questions. You know what I mean?
2. Avoid redundancy at all costs.
3. Avoid redundancy at all costs.
"Do not give redundant error messages again and again." - A classmate of mine, while giving a class talk on error detection in compiler design.
|
|
|
|
|
Vikram Punathambekar wrote:
Are you using TurboC++
ya i used that 1 year back..;) coooooooooooool...!!
CodeTheDreams();
|
|
|
|
|
Vikram Punathambekar wrote:
you should have a
return 0;
It's also not specified what return type main() returns!
Rickard Andersson8
Here is my card, contact me later!
UIN: 50302279
E-Mail: nikado@pc.nu
Interests: C++, ADO, SQL, Winsock, 0s and 1s
|
|
|
|
|
all of those i written above works very well in Turbo C++ compiler
[ It is possible to represent everything in this universe by using 0 and 1 ]
|
|
|
|
|
Renjith R wrote:
Turbo C++ compiler
It ought to be wiped off this planet. It's not a standard compiler. Does it offer:
1. Templates
2. Keywords like mutable
3. new casting
4. namespaces
5. new-style headers
6. and what not?
Not to mention it's wrong when it comes to statements in switch-case constructs.
Get a better one. I'd recommend VC++ or gcc or Bloodshed Dev C++ compiler. There are many others out there- just use google.
Regards,
Vikram.
-----------------------------
My site due for a massive update
Radioactive cats have 18 half-lives.
"Do not give redundant error messages again and again." - A classmate of mine, while giving a class talk on error detection in compiler design.
|
|
|
|
|
feauters are just the additions for easiness and flexibility, that sucks your efforts. the language is what,when that come to exists, not after 100 yrs..
(remember when they add the file related stuffs to the C language.. The time of creation at BELL lab ?? )
[ It is possible to represent everything in this universe by using 0 and 1 ]
|
|
|
|
|
Renjith R wrote:
feauters are just the additions for easiness and flexibility
Hmm...templates, namespaces , casts... - I wouldn't consider them "just" features. The way it works on switch-case constructs is
Anyway, are you still developing 16-bit code?
Vikram.
-----------------------------
My site due for a massive update
Radioactive cats have 18 half-lives.
"Do not give redundant error messages again and again." - A classmate of mine, while giving a class talk on error detection in compiler design.
|
|
|
|
|
Vikram Punathambekar wrote:
Anyway, are you still developing 16-bit code?
heheh..no... i just says the fact. i am very
conscious.
[ It is possible to represent everything in this universe by using 0 and 1 ]
|
|
|
|
|
Are you joking? If no:
A function return type defaults to int , unless explicitly specified otherwise. So, you could have a prototype that looked like
foo(int,char*);
and have a
return 0;
at the end of foo() . Or any other integer, anywhere in foo() , if you're pedantic like me.
I read that the C++ standardization committee was debating as to that default should be removed, i.e., whether you had to declare it as
int foo (int,char *);
but I'm not sure what happened. I always explicitly give the return type in the prototype.
Regards,
Vikram.
-----------------------------
My site due for a massive update
Radioactive cats have 18 half-lives.
"Do not give redundant error messages again and again." - A classmate of mine, while giving a class talk on error detection in compiler design.
|
|
|
|
|
Renjith R wrote:
What u says ?
I was born intelligent Education ruined me!.
|
|
|
|
|
coool..sleep well.
[ It is possible to represent everything in this universe by using 0 and 1 ]
|
|
|
|
|
Dont disturb me
I was born intelligent Education ruined me!.
|
|
|
|
|
The returned pointer may be temporary and should not be stored for later use.
|
|
|
|
|
in fact, that's not the smallest program in C (i mean, standard C, the one which is "compilable" by everyone!). if you do not specify a return type to your function, the compiler will consider it is an integer (so you have to type a return line). otherwise, you should type void before main...
anyway, what is the utility of such programs ??? ;P
TOXCCT >>> GEII power
|
|
|
|
|
toxcct wrote:
anyway, what is the utility of such programs ???
hehe..to make this kind of arguments..cool...
The returned pointer may be temporary and should not be stored for later use.
|
|
|
|
|
toxcct wrote:
so you have to type a return line
return is by default, you dont have to type it explicitly.
|
|
|
|
|
So... your profile shows nothing.... what does that mean???
There is nothing new under the sun, But there are lots of old things we don't know. - Ambrose Bierce
|
|
|
|
|
Look My Profile Now...!!!
programming in VB is like riding a kiddy bike, while programming in C++ is like driving a Formula 1 racing car
|
|
|
|