Search:

Type: Posts; User: kannanm

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,624

    I am adding one more tricks here, For example,...

    I am adding one more tricks here,

    For example,


    #define CHAR char*


    Now use this macro as,
  2. Replies
    4
    Views
    735

    share your entire source code with in the for loop

    share your entire source code with in the for loop
  3. Thread: Quality Check

    by kannanm
    Replies
    5
    Views
    2,570

    Some more comments for the above program, 1)...

    Some more comments for the above program,

    1) In m_Rand(),



    int *mem_location = NULL;


    mem_location = malloc(sizeof(int) * iterations);
  4. I am suggesting to use "cunit" for performing...

    I am suggesting to use "cunit" for performing unit test in c.
    For more details, please refer CUnit Home
  5. I want to understand the use case, whether 1)...

    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...
  6. Replies
    9
    Views
    3,320

    Yes. Correct. It works only in pointer. For...

    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_)...
  7. Replies
    9
    Views
    3,320

    Hi All, Thanks for your hints. I got the...

    Hi All,

    Thanks for your hints.

    I got the solution by using pointer.



    #define FIND_SIZE(_X_) (char*) (_X_ + 1) - (char*) (_X_)
  8. Replies
    9
    Views
    3,320

    Size of the data type

    I want to find the size of the data type with out using sizeof() operator.

    Could anybody provide the solution?
  9. Replies
    3
    Views
    807

    Program is not terminated

    I have written the below code,



    #include "stdio.h"

    int main()
    {
    int c;
  10. This code is wrong, newNode -> value = val; ...

    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 !=...
  11. In the method int palindrome::compare(int a[],int...

    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.
  12. Replies
    6
    Views
    1,356

    1) Mutual Exclusion is simple called as mutex, it...

    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...
  13. Replies
    8
    Views
    843

    You can also use *(p_x + 0) or *(0 + p_x)

    You can also use *(p_x + 0) or *(0 + p_x)
Results 1 to 13 of 13