<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[VU Help - C++ Programing]]></title>
		<link>https://vuhelp.net/</link>
		<description><![CDATA[VU Help - https://vuhelp.net]]></description>
		<pubDate>Tue, 27 Oct 2026 21:13:52 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[c++ program on unix]]></title>
			<link>https://vuhelp.net/Thread-c-program-on-unix</link>
			<pubDate>Wed, 10 Oct 2012 04:16:37 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=22975">varup</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-c-program-on-unix</guid>
			<description><![CDATA[in this assignment, you will implement a program to handle hotel reservations requested by customers<br />
at di erent locations connected to the \Fall-OS" hotel's database.<br />
Suppose each customer is represented by a process and the body of the process consists of all the<br />
reservations made by that customer. A customer can make reservations, payments cancellation of<br />
reservations/payments. Two or more customers may be doing the same transactions at around the<br />
same time. Obviously, reservations/payments to the same room/time period must be performed<br />
atomically (mutual exclusively). If a customer tries to reserve a room that has already been taken,<br />
then disallow this action and print a "room taken" message. If a transaction tries to operate a<br />
non-existent room, print an error message. A customer can reserve a contiguous or non-contiguous<br />
block of two or more rooms at the same time.<br />
To ensure these concurrent operations yield correct results, you are to use Unix semaphores to<br />
control access to rooms/stay periods, which are stored in shared variables.<br />
To simulate (1) the transmission delay between the hotel's central computer and a customer's<br />
computer, and (2) the processing of each transaction, the rst four lines in the body of each<br />
customer specify the required total execution time (in milliseconds) for each of the three operations<br />
performed at that customer. In your implementation, each speci ed time is the length of the critical<br />
section for the corresponding transaction.<br />
Valid transactions are:<br />
reserve (room_number) begin_date number_of_days name_of_customer<br />
cancel (room_number) begin_date number_of_days name_of_customer<br />
reserve (room_number1,...,room_numberK) begin_date number_of_days name_of_customer<br />
/* non-contiguous block */<br />
cancel (room_number1,...,room_numberK) begin_date number_of_days name_of_customer<br />
reserve (room_number1-room_numberM) begin_date number_of_days name_of_customer<br />
/* contiguous block */<br />
cancel (room_number1-room_numberM) begin_date number_of_days name_of_customer<br />
check customer_name /* show rooms and stay periods reserved */<br />
Example{reserving a non-contiguous block of rooms:<br />
reserve (2,5,58) ...<br />
Example{reserving a contiguous block of rooms:<br />
reserve (8-15) ...<br />
You can cancel a room reservation only after you have reserved it. The input is as follows:<br />
n /* number of rooms, numbered from 1 to n */<br />
m /* number of customers */<br />
customer_1:<br />
reserve reserve_time (in milliseconds)<br />
cancel cancel_time (in milliseconds)<br />
check check_time (in milliseconds)<br />
:<br />
valid operations<br />
:<br />
end.<br />
:<br />
:<br />
customer_m:<br />
reserve reserve_time (in milliseconds)<br />
cancel cancel_time (in milliseconds)<br />
check check_time (in milliseconds)<br />
:<br />
valid operations<br />
:<br />
end.<br />
The output after completing all transactions is: a report showing the transactions and resulting<br />
room assignments with customer names.]]></description>
			<content:encoded><![CDATA[in this assignment, you will implement a program to handle hotel reservations requested by customers<br />
at di erent locations connected to the \Fall-OS" hotel's database.<br />
Suppose each customer is represented by a process and the body of the process consists of all the<br />
reservations made by that customer. A customer can make reservations, payments cancellation of<br />
reservations/payments. Two or more customers may be doing the same transactions at around the<br />
same time. Obviously, reservations/payments to the same room/time period must be performed<br />
atomically (mutual exclusively). If a customer tries to reserve a room that has already been taken,<br />
then disallow this action and print a "room taken" message. If a transaction tries to operate a<br />
non-existent room, print an error message. A customer can reserve a contiguous or non-contiguous<br />
block of two or more rooms at the same time.<br />
To ensure these concurrent operations yield correct results, you are to use Unix semaphores to<br />
control access to rooms/stay periods, which are stored in shared variables.<br />
To simulate (1) the transmission delay between the hotel's central computer and a customer's<br />
computer, and (2) the processing of each transaction, the rst four lines in the body of each<br />
customer specify the required total execution time (in milliseconds) for each of the three operations<br />
performed at that customer. In your implementation, each speci ed time is the length of the critical<br />
section for the corresponding transaction.<br />
Valid transactions are:<br />
reserve (room_number) begin_date number_of_days name_of_customer<br />
cancel (room_number) begin_date number_of_days name_of_customer<br />
reserve (room_number1,...,room_numberK) begin_date number_of_days name_of_customer<br />
/* non-contiguous block */<br />
cancel (room_number1,...,room_numberK) begin_date number_of_days name_of_customer<br />
reserve (room_number1-room_numberM) begin_date number_of_days name_of_customer<br />
/* contiguous block */<br />
cancel (room_number1-room_numberM) begin_date number_of_days name_of_customer<br />
check customer_name /* show rooms and stay periods reserved */<br />
Example{reserving a non-contiguous block of rooms:<br />
reserve (2,5,58) ...<br />
Example{reserving a contiguous block of rooms:<br />
reserve (8-15) ...<br />
You can cancel a room reservation only after you have reserved it. The input is as follows:<br />
n /* number of rooms, numbered from 1 to n */<br />
m /* number of customers */<br />
customer_1:<br />
reserve reserve_time (in milliseconds)<br />
cancel cancel_time (in milliseconds)<br />
check check_time (in milliseconds)<br />
:<br />
valid operations<br />
:<br />
end.<br />
:<br />
:<br />
customer_m:<br />
reserve reserve_time (in milliseconds)<br />
cancel cancel_time (in milliseconds)<br />
check check_time (in milliseconds)<br />
:<br />
valid operations<br />
:<br />
end.<br />
The output after completing all transactions is: a report showing the transactions and resulting<br />
room assignments with customer names.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[how many malloc ,calloc and realloc take arguments in c++]]></title>
			<link>https://vuhelp.net/Thread-how-many-malloc-calloc-and-realloc-take-arguments-in-c</link>
			<pubDate>Wed, 20 Jun 2012 06:57:31 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-how-many-malloc-calloc-and-realloc-take-arguments-in-c</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">[SIZE="4"]in C++ malloc take 1 argument <br />
,calloc take two argument <br />
 and realloc take two arguments [/SIZE]</span>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">[SIZE="4"]in C++ malloc take 1 argument <br />
,calloc take two argument <br />
 and realloc take two arguments [/SIZE]</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[how to check include library in Dev C++]]></title>
			<link>https://vuhelp.net/Thread-how-to-check-include-library-in-Dev-C</link>
			<pubDate>Sat, 09 Jun 2012 04:18:56 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-how-to-check-include-library-in-Dev-C</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">Open Dev.CPP folder and inside there is include folder open this folder and you can see all Header files include . the extension of these file are .h .Do not change the .h Extension file  other wise there is problem in Code ..You can include your own librarys</span>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">Open Dev.CPP folder and inside there is include folder open this folder and you can see all Header files include . the extension of these file are .h .Do not change the .h Extension file  other wise there is problem in Code ..You can include your own librarys</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[how to use system("pause"); in Dec C++]]></title>
			<link>https://vuhelp.net/Thread-how-to-use-system-pause-in-Dec-C</link>
			<pubDate>Sat, 09 Jun 2012 04:14:00 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-how-to-use-system-pause-in-Dec-C</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">how to use system("pause"); in Dec C++ the code are given below </span><br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #FF8000">#include&lt;iostream&gt;<br />#include&lt;stdlib.h&gt;<br /></span><span style="color: #0000BB">main&nbsp;</span><span style="color: #007700">()<br />{<br />.<br />.<br />.<br /></span><span style="color: #0000BB">system</span><span style="color: #007700">(</span><span style="color: #DD0000">"pause"</span><span style="color: #007700">);<br />return&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />}&nbsp;<br /></span></code></div></div></div>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">how to use system("pause"); in Dec C++ the code are given below </span><br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #FF8000">#include&lt;iostream&gt;<br />#include&lt;stdlib.h&gt;<br /></span><span style="color: #0000BB">main&nbsp;</span><span style="color: #007700">()<br />{<br />.<br />.<br />.<br /></span><span style="color: #0000BB">system</span><span style="color: #007700">(</span><span style="color: #DD0000">"pause"</span><span style="color: #007700">);<br />return&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />}&nbsp;<br /></span></code></div></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Dangling Pointers  Explain in C++]]></title>
			<link>https://vuhelp.net/Thread-Dangling-Pointers-Explain-in-C</link>
			<pubDate>Wed, 30 May 2012 11:52:19 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-Dangling-Pointers-Explain-in-C</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">Pointers that do not point to a valid object of the appropriate type. Dangling pointers arise when an object is deleted or deallocated, without modifying the value of the pointer, so that the pointer still points to the memory location of the deallocated memory. As the system may reallocate the previously freed memory to another process, if the original program then dereferences the (now) dangling pointer, unpredictable behavior may result, as the memory may now contain completely different data. This is especially the case if the program writes data to memory pointed by a dangling pointer, as silent corruption of unrelated data may result, leading to subtle bugs that can be extremely difficult to find, or cause segmentation faults.</span>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">Pointers that do not point to a valid object of the appropriate type. Dangling pointers arise when an object is deleted or deallocated, without modifying the value of the pointer, so that the pointer still points to the memory location of the deallocated memory. As the system may reallocate the previously freed memory to another process, if the original program then dereferences the (now) dangling pointer, unpredictable behavior may result, as the memory may now contain completely different data. This is especially the case if the program writes data to memory pointed by a dangling pointer, as silent corruption of unrelated data may result, leading to subtle bugs that can be extremely difficult to find, or cause segmentation faults.</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[why we use inline function if there are simple function available, or what is the spa]]></title>
			<link>https://vuhelp.net/Thread-why-we-use-inline-function-if-there-are-simple-function-available-or-what-is-the-spa</link>
			<pubDate>Wed, 30 May 2012 11:51:36 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-why-we-use-inline-function-if-there-are-simple-function-available-or-what-is-the-spa</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">why we use inline function if there are simple function available, or what is the spacial benefit of inline function over simple function</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b"><br />
A function is declared inline by using the inline function specifier or by defining a member function within a class or structure definition. The inline specifier is only a suggestion to the compiler that an inline expansion can be performed; the compiler is free to ignore the suggestion. The following code fragment shows an inline function definition.<br />
 inline int add(int i, int j) <br />
{<br />
 return i + j; <br />
} <br />
An inline function is one for which the compiler copies the code from the function definition directly into the code of the calling function rather than creating a separate set of instructions in memory. Instead of transferring control to and from the function code segment, a modified copy of the function body may be substituted directly for the function call. In this way, the performance overhead of a function call is avoided.</span>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">why we use inline function if there are simple function available, or what is the spacial benefit of inline function over simple function</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b"><br />
A function is declared inline by using the inline function specifier or by defining a member function within a class or structure definition. The inline specifier is only a suggestion to the compiler that an inline expansion can be performed; the compiler is free to ignore the suggestion. The following code fragment shows an inline function definition.<br />
 inline int add(int i, int j) <br />
{<br />
 return i + j; <br />
} <br />
An inline function is one for which the compiler copies the code from the function definition directly into the code of the calling function rather than creating a separate set of instructions in memory. Instead of transferring control to and from the function code segment, a modified copy of the function body may be substituted directly for the function call. In this way, the performance overhead of a function call is avoided.</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[how often do we require to use inline functions and macros. their importance in c++]]></title>
			<link>https://vuhelp.net/Thread-how-often-do-we-require-to-use-inline-functions-and-macros-their-importance-in-c</link>
			<pubDate>Wed, 30 May 2012 11:49:26 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-how-often-do-we-require-to-use-inline-functions-and-macros-their-importance-in-c</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">A function is declared inline by using the inline function specifier or by defining a member function within a class or structure definition. The inline specifier is only a suggestion to the compiler that an inline expansion can be performed; the compiler is free to ignore the suggestion. The following code fragment shows an inline function definition.<br />
 inline int add(int i, int j) <br />
{ <br />
return i + j; <br />
} <br />
An inline function is one for which the compiler copies the code from the function definition directly into the code of the calling function rather than creating a separate set of instructions in memory. Instead of transferring control to and from the function code segment, a modified copy of the function body may be substituted directly for the function call. In this way, the performance overhead of a function call is avoided. <br />
<br />
A symbol, name, or key that represents a list of commands, actions, or keystrokes. Many programs allow you to create macros so that you can enter a single character or word to perform a whole series of actions. As in the following example we are defining a macro with named PI and it will be replaced by the constant value 3.1415926 wherever PI is used in the program. <br />
#define PI 3.1415926 <br />
Here the symbol PI will be replaced with the actual value (i.e. 3.1415926) in the program. These are simple macros like symbolic names mapped to constants.</span>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">A function is declared inline by using the inline function specifier or by defining a member function within a class or structure definition. The inline specifier is only a suggestion to the compiler that an inline expansion can be performed; the compiler is free to ignore the suggestion. The following code fragment shows an inline function definition.<br />
 inline int add(int i, int j) <br />
{ <br />
return i + j; <br />
} <br />
An inline function is one for which the compiler copies the code from the function definition directly into the code of the calling function rather than creating a separate set of instructions in memory. Instead of transferring control to and from the function code segment, a modified copy of the function body may be substituted directly for the function call. In this way, the performance overhead of a function call is avoided. <br />
<br />
A symbol, name, or key that represents a list of commands, actions, or keystrokes. Many programs allow you to create macros so that you can enter a single character or word to perform a whole series of actions. As in the following example we are defining a macro with named PI and it will be replaced by the constant value 3.1415926 wherever PI is used in the program. <br />
#define PI 3.1415926 <br />
Here the symbol PI will be replaced with the actual value (i.e. 3.1415926) in the program. These are simple macros like symbolic names mapped to constants.</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[what is heap and why we use it]]></title>
			<link>https://vuhelp.net/Thread-what-is-heap-and-why-we-use-it</link>
			<pubDate>Wed, 30 May 2012 11:48:51 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-what-is-heap-and-why-we-use-it</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">what is heap and why we use it</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b"><br />
There are two places that stores items in memory as your code executes. These are Stack and the Heap. Both the stack and heap help us run our code. They reside in the operating memory on our machine and contain the pieces of information we need to make it all happen. Stack memory stores variable types in address' in memory, these variables in programming are called local variables and are often stored for short amounts of time while a function/method block uses them to compute a task. once a function/method has completed its cycle the reference to the variable in the stack is removed. Heap memory stores all instances or attributes, constructors and methods of a class/object. A Heap reference is also stored in Stack memory until the life cycle of the object has completed. Inside the Heap reference all the contents of the object are stored whereas with a local variable only the variable contents are stored in the stack. When the data is washed out of ram then system cannot continue its work from the last end point instead it needs to recall the data into the memory to start processing.Examples of heap implementrion are given on the following links.<br />
<a href="http://library.thinkquest.org/C005618/text/heaps.htm" target="_blank" rel="noopener" class="mycode_url">An Introduction to Data Structures with C++</a> <br />
<a href="http://users.cis.fiu.edu/~weiss/dsaa_c++/code/" target="_blank" rel="noopener" class="mycode_url">Source Code for Data Structures and Algorithm Analysis in C++ (Second Edition)</a></span>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">what is heap and why we use it</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b"><br />
There are two places that stores items in memory as your code executes. These are Stack and the Heap. Both the stack and heap help us run our code. They reside in the operating memory on our machine and contain the pieces of information we need to make it all happen. Stack memory stores variable types in address' in memory, these variables in programming are called local variables and are often stored for short amounts of time while a function/method block uses them to compute a task. once a function/method has completed its cycle the reference to the variable in the stack is removed. Heap memory stores all instances or attributes, constructors and methods of a class/object. A Heap reference is also stored in Stack memory until the life cycle of the object has completed. Inside the Heap reference all the contents of the object are stored whereas with a local variable only the variable contents are stored in the stack. When the data is washed out of ram then system cannot continue its work from the last end point instead it needs to recall the data into the memory to start processing.Examples of heap implementrion are given on the following links.<br />
<a href="http://library.thinkquest.org/C005618/text/heaps.htm" target="_blank" rel="noopener" class="mycode_url">An Introduction to Data Structures with C++</a> <br />
<a href="http://users.cis.fiu.edu/~weiss/dsaa_c++/code/" target="_blank" rel="noopener" class="mycode_url">Source Code for Data Structures and Algorithm Analysis in C++ (Second Edition)</a></span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Default Function Argument with example]]></title>
			<link>https://vuhelp.net/Thread-Default-Function-Argument-with-example</link>
			<pubDate>Wed, 30 May 2012 11:47:13 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-Default-Function-Argument-with-example</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">Default function argument means to fix the value of one or more than one function parameters which you expect, will remain same in the entire or most of the program. For example you have a function named table() which takes two parameters number and upperlimit. Number is the value you want to print table of, and upperlimit contains the value upto which you want the table to be. In this case you will know that most of the time the value of upperlimit will be same i.e. 10, so you can fix this value.<br />
table(int number, int upperlimit = 10);<br />
Now whenever you call this function, the value of upperlimit will be 10 by default.<br />
You can also call this function by only giving the parameter value for number variable only.</span>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">Default function argument means to fix the value of one or more than one function parameters which you expect, will remain same in the entire or most of the program. For example you have a function named table() which takes two parameters number and upperlimit. Number is the value you want to print table of, and upperlimit contains the value upto which you want the table to be. In this case you will know that most of the time the value of upperlimit will be same i.e. 10, so you can fix this value.<br />
table(int number, int upperlimit = 10);<br />
Now whenever you call this function, the value of upperlimit will be 10 by default.<br />
You can also call this function by only giving the parameter value for number variable only.</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[What is the difference among calloc function ,malloc function and recalloc function?]]></title>
			<link>https://vuhelp.net/Thread-What-is-the-difference-among-calloc-function-malloc-function-and-recalloc-function</link>
			<pubDate>Wed, 30 May 2012 11:46:25 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-What-is-the-difference-among-calloc-function-malloc-function-and-recalloc-function</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">1- Two types of dynamic memory allocation one is calloc and other is malloc. <br />
There are two differences.  First is in the number of arguments. Malloc() takes a single argument (memory required in bytes), while calloc() needs two arguments. <br />
malloc() does not initialize the memory allocated, while calloc() initializes the allocated memory to ZERO.<br />
<br />
calloc() allocates a memory area, the length will be the product of its parameters. calloc fills the memory with ZERO's and returns a pointer to first byte. If it fails to locate enough space it returns a NULL pointer.<br />
<br />
Syntax: ptr_var=(cast_type *)calloc(no_of_blocks , size_of_each_block); i.e. ptr_var=(type *)calloc(n,s); malloc() allocates a single block of memory of REQUSTED SIZE and returns a pointer to first byte. If it fails to locate requsted amount of memory it returns a null pointer. <br />
<br />
Syntax: <br />
ptr_var=(cast_type *)malloc(Size_in_bytes);<br />
The malloc() function take one argument, which is the number of bytes to allocate, while the calloc() function takes two arguments, one being the number of elements, and the other being the number of bytes to allocate for each of those elements. Also, calloc() initializes the allocated space to zeroes, while malloc() does not.<br />
<br />
If a pointer has already been allocated memory using malloc and later this allocated memory needs to be expanded for some reason, the realloc function is used. It will add the consecutive memory spaces to the existing if available, otherwise it will allocate whole new space for the same pointer.</span>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">1- Two types of dynamic memory allocation one is calloc and other is malloc. <br />
There are two differences.  First is in the number of arguments. Malloc() takes a single argument (memory required in bytes), while calloc() needs two arguments. <br />
malloc() does not initialize the memory allocated, while calloc() initializes the allocated memory to ZERO.<br />
<br />
calloc() allocates a memory area, the length will be the product of its parameters. calloc fills the memory with ZERO's and returns a pointer to first byte. If it fails to locate enough space it returns a NULL pointer.<br />
<br />
Syntax: ptr_var=(cast_type *)calloc(no_of_blocks , size_of_each_block); i.e. ptr_var=(type *)calloc(n,s); malloc() allocates a single block of memory of REQUSTED SIZE and returns a pointer to first byte. If it fails to locate requsted amount of memory it returns a null pointer. <br />
<br />
Syntax: <br />
ptr_var=(cast_type *)malloc(Size_in_bytes);<br />
The malloc() function take one argument, which is the number of bytes to allocate, while the calloc() function takes two arguments, one being the number of elements, and the other being the number of bytes to allocate for each of those elements. Also, calloc() initializes the allocated space to zeroes, while malloc() does not.<br />
<br />
If a pointer has already been allocated memory using malloc and later this allocated memory needs to be expanded for some reason, the realloc function is used. It will add the consecutive memory spaces to the existing if available, otherwise it will allocate whole new space for the same pointer.</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[What is Function Overloading in C++]]></title>
			<link>https://vuhelp.net/Thread-What-is-Function-Overloading-in-C</link>
			<pubDate>Wed, 30 May 2012 11:45:30 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-What-is-Function-Overloading-in-C</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">Function overloading means defining multiple functions with same name but with different parameters. For example you may have a function sum() with 2 arguments and with three arguments such as<br />
int sum(int a, int b);<br />
int sum(double a, double b, int c);</span>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">Function overloading means defining multiple functions with same name but with different parameters. For example you may have a function sum() with 2 arguments and with three arguments such as<br />
int sum(int a, int b);<br />
int sum(double a, double b, int c);</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[offline function  in C++]]></title>
			<link>https://vuhelp.net/Thread-offline-function-in-C</link>
			<pubDate>Wed, 30 May 2012 11:42:16 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-offline-function-in-C</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">There is no term as offline function. The functions other than inline funtions are regular functions.</span>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">There is no term as offline function. The functions other than inline funtions are regular functions.</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[i take input from getchar(); function in program in C++ 2012]]></title>
			<link>https://vuhelp.net/Thread-i-take-input-from-getchar-function-in-program-in-C-2012</link>
			<pubDate>Wed, 30 May 2012 11:40:56 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-i-take-input-from-getchar-function-in-program-in-C-2012</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">getchar() function takes a single character as input from user. You can store the character into a character variable or an array. For example if you have a character variable<br />
char s;<br />
then s = getchar();  statement will take one character from the user and store it in s.<br />
Similarly you can get input in a character array using a loop where each iteration of loop will store one character in array's elements.</span>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">getchar() function takes a single character as input from user. You can store the character into a character variable or an array. For example if you have a character variable<br />
char s;<br />
then s = getchar();  statement will take one character from the user and store it in s.<br />
Similarly you can get input in a character array using a loop where each iteration of loop will store one character in array's elements.</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[what is meant by trivial and non trivial in C and C++ 2012]]></title>
			<link>https://vuhelp.net/Thread-what-is-meant-by-trivial-and-non-trivial-in-C-and-C-2012</link>
			<pubDate>Wed, 30 May 2012 11:38:30 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-what-is-meant-by-trivial-and-non-trivial-in-C-and-C-2012</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">Trivial and non-trivial refer to something (a statement) which is easy and not easy to prove. For example its a trivial fact that a character variable can store only one character at a time.</span><br />
  <br />
<br />
[COLOR="red"]<br />
for more information check the C++ book[/COLOR]]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">Trivial and non-trivial refer to something (a statement) which is easy and not easy to prove. For example its a trivial fact that a character variable can store only one character at a time.</span><br />
  <br />
<br />
[COLOR="red"]<br />
for more information check the C++ book[/COLOR]]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[how we used the 1-calloc Function 2- malloc Function 3- free () 4- realloc Function i]]></title>
			<link>https://vuhelp.net/Thread-how-we-used-the-1-calloc-Function-2-malloc-Function-3-free-4-realloc-Function-i</link>
			<pubDate>Wed, 30 May 2012 11:35:07 -0400</pubDate>
			<dc:creator><![CDATA[<a href="https://vuhelp.net/member.php?action=profile&uid=8479">Vuhelper</a>]]></dc:creator>
			<guid isPermaLink="false">https://vuhelp.net/Thread-how-we-used-the-1-calloc-Function-2-malloc-Function-3-free-4-realloc-Function-i</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">Define that how we used the 1-calloc Function 2- malloc Function 3- free () 4- realloc Function in C and C++ 2012- 14<br />
</span>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">Define that how we used the 1-calloc Function 2- malloc Function 3- free () 4- realloc Function in C and C++ 2012- 14<br />
</span>]]></content:encoded>
		</item>
	</channel>
</rss>