<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ideawaza.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=75.100.92.240</id>
	<title>IdeaWazaWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://ideawaza.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=75.100.92.240"/>
	<link rel="alternate" type="text/html" href="https://ideawaza.com/wiki/Special:Contributions/75.100.92.240"/>
	<updated>2026-09-29T19:17:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://ideawaza.com/index.php?title=Functions&amp;diff=37991</id>
		<title>Functions</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Functions&amp;diff=37991"/>
		<updated>2007-04-09T03:37:17Z</updated>

		<summary type="html">&lt;p&gt;75.100.92.240: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This example is on functions.  With Functions you  need to state the return type of the function.  Either int or void.  Int is value used for returning something to a call, mainly used for returning integers such as the add function in the following program.  Void is used for functions that dont return a value or you dont want to return a value.  You must use int or void in every function you make.  Take a look at the following program:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void cfile(char *file)&lt;br /&gt;
{&lt;br /&gt;
     FILE *fp = fopen(file, &amp;quot;w&amp;quot;);&lt;br /&gt;
     fprintf(fp, &amp;quot;some text&amp;quot;);&lt;br /&gt;
     fclose(fp);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int add(int x, int y)&lt;br /&gt;
{&lt;br /&gt;
     int r;&lt;br /&gt;
     r = x + y;&lt;br /&gt;
     return(r);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
     cfile(&amp;quot;example.txt&amp;quot;);&lt;br /&gt;
     add(1,1);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You could have done this(it really doesn&#039;t make a difference):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt; //standar C header&lt;br /&gt;
&lt;br /&gt;
int cfile(char *file)&lt;br /&gt;
{&lt;br /&gt;
     FILE *fp = fopen(file, &amp;quot;w&amp;quot;);&lt;br /&gt;
     fprintf(fp, &amp;quot;example&amp;quot;);&lt;br /&gt;
     fclose(fp);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int add(int x, int y) //this must be int it&#039;s returning something to a function call&lt;br /&gt;
{&lt;br /&gt;
     int r;&lt;br /&gt;
     r = x + y;&lt;br /&gt;
     return(r);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
     cfile(&amp;quot;example.txt&amp;quot;);&lt;br /&gt;
     add(1,1);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>75.100.92.240</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Functions&amp;diff=37990</id>
		<title>Functions</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Functions&amp;diff=37990"/>
		<updated>2007-04-09T03:36:51Z</updated>

		<summary type="html">&lt;p&gt;75.100.92.240: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This example is on functions.  With Functions you  need to state the return type of the function.  Either int or void.  Int is value used for returning something to a call, mainly used for returning integers such as the add function in the following program.  Void is used for functions that dont return a value or you dont want to return a value.  You must use int or void in every function you make.  Take a look at the following program:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void cfile(char *file)&lt;br /&gt;
{&lt;br /&gt;
     FILE *fp = fopen(file, &amp;quot;w&amp;quot;);&lt;br /&gt;
     fprintf(fp, &amp;quot;example&amp;quot;);&lt;br /&gt;
     fclose(fp);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int add(int x, int y)&lt;br /&gt;
{&lt;br /&gt;
     int r;&lt;br /&gt;
     r = x + y;&lt;br /&gt;
     return(r);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
     cfile(&amp;quot;example.txt&amp;quot;);&lt;br /&gt;
     add(1,1);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You could have done this(it really doesn&#039;t make a difference):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt; //standar C header&lt;br /&gt;
&lt;br /&gt;
int cfile(char *file)&lt;br /&gt;
{&lt;br /&gt;
     FILE *fp = fopen(file, &amp;quot;w&amp;quot;);&lt;br /&gt;
     fprintf(fp, &amp;quot;example&amp;quot;);&lt;br /&gt;
     fclose(fp);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int add(int x, int y) //this must be int it&#039;s returning something to a function call&lt;br /&gt;
{&lt;br /&gt;
     int r;&lt;br /&gt;
     r = x + y;&lt;br /&gt;
     return(r);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
     cfile(&amp;quot;example.txt&amp;quot;);&lt;br /&gt;
     add(1,1);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>75.100.92.240</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Functions&amp;diff=37989</id>
		<title>Functions</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Functions&amp;diff=37989"/>
		<updated>2007-04-09T03:36:20Z</updated>

		<summary type="html">&lt;p&gt;75.100.92.240: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This example is on functions.  With Functions you  need to state the return type of the function.  Either int or void.  Int is value used for returning something to a call, mainly used for returning integers such as the add function in the following program.  Void is used for functions that dont return a value or you dont want to return a value.  You must use int or void in every function you make.  Take a look at the following program:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void cfile(char *file)&lt;br /&gt;
{&lt;br /&gt;
     FILE *fp = fopen(file, &amp;quot;w&amp;quot;);&lt;br /&gt;
     fprintf(fp, &amp;quot;example&amp;quot;);&lt;br /&gt;
     fclose(fp);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int add(int x, int y)&lt;br /&gt;
{&lt;br /&gt;
     int r;&lt;br /&gt;
     r = x + y;&lt;br /&gt;
     return(r);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
     cfile(&amp;quot;example.txt&amp;quot;);&lt;br /&gt;
     add(1,1);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You could have dont this(it really doesn&#039;t make a difference):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt; //standar C header&lt;br /&gt;
&lt;br /&gt;
int cfile(char *file)&lt;br /&gt;
{&lt;br /&gt;
     FILE *fp = fopen(file, &amp;quot;w&amp;quot;);&lt;br /&gt;
     fprintf(fp, &amp;quot;example&amp;quot;);&lt;br /&gt;
     fclose(fp);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int add(int x, int y) //this must be int it&#039;s returning something to a function call&lt;br /&gt;
{&lt;br /&gt;
     int r;&lt;br /&gt;
     r = x + y;&lt;br /&gt;
     return(r);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
     cfile(&amp;quot;example.txt&amp;quot;);&lt;br /&gt;
     add(1,1);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>75.100.92.240</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Functions&amp;diff=37988</id>
		<title>Functions</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Functions&amp;diff=37988"/>
		<updated>2007-04-09T03:34:56Z</updated>

		<summary type="html">&lt;p&gt;75.100.92.240: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This example is on functions.  With Functions you  need to state the return type of the function.  Either int or void.  Int is value used for returning something to a call, mainly used for returning integers such as the add function in the following program.  Void is used for functions that dont return a value or you dont want to return a value.  You must use int or void in every function you make.  Take a look at the following program:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void cfile(char *file)&lt;br /&gt;
{&lt;br /&gt;
     FILE *fp = fopen(file, &amp;quot;w&amp;quot;);&lt;br /&gt;
     fprintf(fp, &amp;quot;example&amp;quot;);&lt;br /&gt;
     fclose(fp);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int add(int x, int y)&lt;br /&gt;
{&lt;br /&gt;
     int r;&lt;br /&gt;
     r = x + y;&lt;br /&gt;
     return(r);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
     cfile(&amp;quot;example.txt&amp;quot;);&lt;br /&gt;
     add(1,1);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>75.100.92.240</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Functions&amp;diff=37987</id>
		<title>Functions</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Functions&amp;diff=37987"/>
		<updated>2007-04-09T03:30:41Z</updated>

		<summary type="html">&lt;p&gt;75.100.92.240: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void cfile(char *file)&lt;br /&gt;
{&lt;br /&gt;
     FILE *fp = fopen(file, &amp;quot;w&amp;quot;);&lt;br /&gt;
     fprintf(fp, &amp;quot;example&amp;quot;);&lt;br /&gt;
     fclose(fp);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int add(int x, int y)&lt;br /&gt;
{&lt;br /&gt;
     int r;&lt;br /&gt;
     r = x + y;&lt;br /&gt;
     return(r);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
     cfile(&amp;quot;example.txt&amp;quot;);&lt;br /&gt;
     add(1,1);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>75.100.92.240</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Functions&amp;diff=37986</id>
		<title>Functions</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Functions&amp;diff=37986"/>
		<updated>2007-04-09T03:29:20Z</updated>

		<summary type="html">&lt;p&gt;75.100.92.240: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void cfile(char *file)&lt;br /&gt;
{&lt;br /&gt;
     FILE *fp = fopen(file, &amp;quot;w&amp;quot;);&lt;br /&gt;
     fprintf(fp, &amp;quot;example&amp;quot;);&lt;br /&gt;
     fclose(fp);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int add(int x, int y)&lt;br /&gt;
{&lt;br /&gt;
     int r;&lt;br /&gt;
     r = x + y;&lt;br /&gt;
     return(r);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
     cfile(&amp;quot;example.txt&amp;quot;);&lt;br /&gt;
     add(1,1);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>75.100.92.240</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Functions&amp;diff=37985</id>
		<title>Functions</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Functions&amp;diff=37985"/>
		<updated>2007-04-09T03:27:39Z</updated>

		<summary type="html">&lt;p&gt;75.100.92.240: Removing all content from page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>75.100.92.240</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Functions&amp;diff=37984</id>
		<title>Functions</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Functions&amp;diff=37984"/>
		<updated>2007-04-09T03:27:21Z</updated>

		<summary type="html">&lt;p&gt;75.100.92.240: New page: #include &amp;lt;stdio.h&amp;gt;  void cfile(char *file) {      FILE *fp = fopen(file, &amp;quot;w&amp;quot;);      fprintf(fp, &amp;quot;example&amp;quot;);      fclose(fp); }  int add(int x, int y) {      int r;      r = x + y;      ret...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void cfile(char *file)&lt;br /&gt;
{&lt;br /&gt;
     FILE *fp = fopen(file, &amp;quot;w&amp;quot;);&lt;br /&gt;
     fprintf(fp, &amp;quot;example&amp;quot;);&lt;br /&gt;
     fclose(fp);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int add(int x, int y)&lt;br /&gt;
{&lt;br /&gt;
     int r;&lt;br /&gt;
     r = x + y;&lt;br /&gt;
     return(r);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
     cfile(&amp;quot;example.txt&amp;quot;);&lt;br /&gt;
     add(1,1);&lt;br /&gt;
     return 0;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>75.100.92.240</name></author>
	</entry>
</feed>