Search:

Type: Posts; User: GOGO1104

Search: Search took 0.01 seconds.

  1. Solved

    Thank u guys.....cas is right...thanks again
  2. BUT

    Thanks but
    char *m_module[MAX];
    is array of char ptr memory must be allocated for each char *
  3. Need help:reading and writing structure into file

    This is the code


    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>

    #define MAX 10
    struct module
    {
  4. Replies
    2
    Views
    1,281

    Help:working of Type casting

    main()
    {
    double d;
    printf("%d", (unsigned int)((double *)0+2));
    }


    How the output of this code is 16?
  5. Replies
    7
    Views
    1,686

    Thanks laser I have used a+i in place of a++...

    Thanks laser

    I have used a+i in place of a++ it fine now.

    But another doubt



    main()
    {
  6. Replies
    7
    Views
    1,686

    Help: double free corruption??

    int main()
    {
    int *a,i;
    a=(int *)malloc(10*sizeof(int));
    for(i=0;i<10;i++)
    *(a+i)=i*i;
    for(i=0;i<10;i++)
    printf("%d",*a++);
    ...
Results 1 to 6 of 6