![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: May 2005
Posts: 11
Rep Power: 0
![]() |
Implicit returns
Hi all,
I have an assignment to do and as specification it said: Your parser should determine the number of returns per method and the return type for each method in the class file. These should be printed in a table. Be sure to count implicit returns. My question are: What is implicit return ? Can you give me an example? |
|
|
|
|
|
#2 |
|
Professional Programmer
|
Re: Implicit returns
I am not 100% sure but here is what I think it is:
void foo()
{
doSomething()
}
int bar(int a)
{
return a *a
}
int main()
{
foo();
bar(2);
return 0;
}
__________________
JG-Webdesign |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with assignment code returns no answer | backstabber | C++ | 9 | Dec 21st, 2006 7:46 AM |
| GCC - Warning: implicit declaration of function | darthsabbath | C | 5 | Jul 6th, 2006 12:52 PM |
| Stash returns... Malloc problem? | Soulstorm | C++ | 18 | May 27th, 2006 2:09 AM |
| Implicit class converions | aznluvsmc | C++ | 1 | Oct 10th, 2005 5:04 AM |
| Function that returns occurances of substring in string. | conbrio | C | 7 | Jul 1st, 2005 6:51 PM |