I am adding one more tricks here,
For example,
#define CHAR char*
Now use this macro as,
Type: Posts; User: kannanm
I am adding one more tricks here,
For example,
#define CHAR char*
Now use this macro as,
share your entire source code with in the for loop
Some more comments for the above program,
1) In m_Rand(),
int *mem_location = NULL;
mem_location = malloc(sizeof(int) * iterations);
I am suggesting to use "cunit" for performing unit test in c.
For more details, please refer CUnit Home
I want to understand the use case, whether
1) whether do you want insert the node at specific position?
2) Otherwise do you want to insert the node by ascending order based on the value of...
Yes. Correct. It works only in pointer. For example, do you want to find a size of integer then declare the pointer variable and pass that variable to the macro.
#define FIND_SIZE(_X_)...
Hi All,
Thanks for your hints.
I got the solution by using pointer.
#define FIND_SIZE(_X_) (char*) (_X_ + 1) - (char*) (_X_)
I want to find the size of the data type with out using sizeof() operator.
Could anybody provide the solution?
I have written the below code,
#include "stdio.h"
int main()
{
int c;
This code is wrong, newNode -> value = val;
You need to allocate memory for newNode -> value and then copying the content from the pointer val
newNode = malloc(sizeof(Node));
if (null !=...
In the method int palindrome::compare(int a[],int n),
else
{
flag=0;
{
This leads the sytax error. Also, when ever condition matches then exit the loop.
1) Mutual Exclusion is simple called as mutex, it is one of OS object.
2) In multi tasking environment, it allows only one task to access the shared data.
3) Every task has to put mutex lock when...
You can also use *(p_x + 0) or *(0 + p_x)