| | |
C programming
![]() |
When a function is finished, the final statement in the funct can be something like
x is the value returned into the variable.
Example:
val will contain the sum when the function is finished.
When you get to functions you will understand -- I hope
return x;x is the value returned into the variable.
Example:
val = add(a, b); // add A and B
...
int add (int x, int y) // define the add function
{
int z;
z = x + y; // add the values
return z; // return the value of the addition
}When you get to functions you will understand -- I hope
Last edited by WaltP; Aug 22nd, 2006 at 5:31 am.
![]() |
Similar Threads
- Good books on Shell Programming/Perl (Perl)
- Shell Programming (Shell Scripting)
- Programming (C++)
- Where to get started with Web Programming (IT Professionals' Lounge)
- Programming in Linux? (*nix Software)
- Help Me on Symbian(OS) Programming with c++ (C++)
- Efficient Programming (Computer Science)
- New To Programming = ME!! (C++)
Other Threads in the IT Professionals' Lounge Forum
- Previous Thread: Instant messaging
- Next Thread: Java/JSP Web Dev
Views: 1477 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for IT Professionals' Lounge
1gbit advertising advice amazon answers archive british broadband business businessprocesses career censorship cern china collectiveintelligence connectivity consumer consumers corporateearnings css datatransfer debtcollectors digital ebay ecommerce email employment environment facebook food government high-definition hottub infodelivery infotech intel internet interview ipod isp japan kindle lhc library malware marketing mit moonfruit news onlineshopping php piracy pope porn program questions r&d religion remoteworking research retail schools security sex shopping simple skype smallbusiness smb sms socialmedia socialnetworking software softwareengineer spam speed spending ssl startrek statistics stocks study stumbleupon survey tabletpc technology touch-screen touchscreen training twitter uk vbulletin videoinprint voips vulnerability web webdesign webdeveloper windows words






