Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

The GNU C Programming Tutorial - Questions for Chapter 4

Node:Questions for Chapter 4, Previous:The exit function, Up:Functions



Questions for Chapter 4

  1. Write a function that takes two values a and b, then returns the value of a * b (that is, a times b.)
  2. Is there anything wrong with a function that returns no value?
  3. What happens if a function returns a value but you do not assign that value to anything?
  4. What happens if a variable is assigned the result of a function, but the function does not return a value?
  5. How can you make a program terminate, anywhere in the program?

 
 
  Published under free license. Design by Interspire