Search:

Type: Posts; User: Jones_C

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    12,492

    Thank you for such quick response. You have...

    Thank you for such quick response.
    You have mentioned about dangling pointer. Is it 'c' pointer in the above program you are referring to? If it is then I hope c=NULL will solve the problem?
    ...
  2. Replies
    3
    Views
    12,492

    Valgrind - facing some problem

    Hi,
    I have the following program
    pointertst.cpp
    ---------


    #include<iostream>
    #include<stdio.h>
    #include<stdlib.h>
    using namespace std;
  3. Replies
    13
    Views
    1,379

    Hi all, thanks a lot for your suggestions. I...

    Hi all, thanks a lot for your suggestions. I incorporated the suggested changes. As suggested I used <stdlib.h> instead of <alloc.h> and also removed the address of operator for scanf( "%s", emparr[...
  4. Replies
    13
    Views
    1,379

    Need Help - pointer to array of stuctures

    Hi, I need help for the following program.

    In main() when tried to print the values, stored in emparr i.e.,
    printf("%s",(emp[i].name));
    printf("%d",(emp[i].num));

    it is...
Results 1 to 4 of 4