Search:

Type: Posts; User: muke786

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,433

    Does this mean that when we allocate memory...

    Does this mean that when we allocate memory through malloc, the garbage value will stored at that memory location. When we allocate memory through calloc, every variable will initialized to 0.
  2. Replies
    12
    Views
    1,433

    exactly I do not understand what it means ...

    exactly I do not understand what it means "initialize it to zero"

    If we want to store value of five integer we need 20 bytes so malloc function will allocate 20 bytes to store five integer value...
  3. Replies
    12
    Views
    1,433

    What is Calloc in C?

    Hi guys,

    I tried to understand calloc function in c language I have gone through the many pages but I do not understand fundamental What is Calloc in C?


    #include<stdio.h>#include<stdlib.h>...
  4. Replies
    6
    Views
    939

    What I think is P = NULL; memory is not...

    What I think is

    P = NULL; memory is not allocated so size should be 0
    P = malloc (1 * sizeof(int)); memory allocated so size should be 4
    P = free(P); memory has been released so the size should...
  5. Replies
    6
    Views
    939

    Why the size of P is 4 after Release memory? ...

    Why the size of P is 4 after Release memory?

    P = 10
    P = 4 ...
  6. Replies
    8
    Views
    687

    #include void addition (int a, int b)...

    #include <stdio.h> void addition (int a, int b)
    {
    int c = a + b;

    printf ("c = %d \n", c);
    }


    int main ()
    {
  7. Replies
    6
    Views
    939

    Segmentation fault (core dumped)

    Result is not as expected, line free(P); give output Segmentation fault (core dumped) what's the wrong with it

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



    int main ()
    {
    int *P = NULL;
    ...
  8. Replies
    8
    Views
    687

    But I am passing two actual argument in main...

    But I am passing two actual argument in main function
    gone through following links
    Too few arguments to function (C language Error)
  9. Replies
    8
    Views
    687

    oh Thank you What's wrong with code ...

    oh Thank you What's wrong with code


    #include <stdio.h>
    void addition (int a, int b)
    {
    int c = a + b;

    printf ("c = %d /n", c);
    }
  10. Replies
    8
    Views
    687

    Function pointer issue

    Function pointer is use to call function by it's address Why program doesn't print statement ?


    #include <stdio.h>

    void colour ()
    {
    printf("Green colours");
    }
  11. It say when static use inside in function it is...

    It say when static use inside in function it is only visible only to the function in which it is defined. and when static use outside the function it say variable will visible to all the functions in...
  12. I do not understand static global variable in C

    Hello Everybody

    I found the description for the keyword static here Static Variables in C - GeeksforGeeks which I do not understand for static global variable

    Any help would be appreciated
  13. Replies
    4
    Views
    809

    I am not clear I do not understand when to use...

    I am not clear I do not understand when to use double data type ?
  14. Replies
    4
    Views
    809

    beginner question double data type

    I am beginner in c programming, As far as I understand it is used to store decimal number and float number.


    #include <stdio.h> int main()
    {
    int a = 1;
    char b ='G';
    double c...
Results 1 to 14 of 14