User Profile

Collapse

Profile Sidebar

Collapse
vimase
vimase
Last Activity: May 21 '07, 07:34 AM
Joined: Oct 26 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • vimase
    replied to Very Lost and Very need of help
    in C
    can u be more specific as to what you want to do?
    See more | Go to post

    Leave a comment:


  • vimase
    replied to malloc
    in C
    First of all you need to allocate memory to p as,
    p = (int **) ....., and not as
    p = (int *).....
    as p is double pointer.

    Regarding the size,
    size of p is 4 bytes,
    size of *p is also 4 bytes, as both are pointers,
    But size of **p is the size of the integer that your hardware supports....
    See more | Go to post

    Leave a comment:


  • vimase
    replied to Difference Between Data Structures and Pointers
    in C
    Pointers are constructs that point to the address location of a particular data type. Ofcourse, pointers also need to have data types associated with them, i.e. while declaring we have to define the data type of the pointer, for e.g.
    int * p;
    char * p1;
    but the pointer is just pointing to the memory location, which holds the particular variable. So by just changing the reference of the...
    See more | Go to post

    Leave a comment:


  • vimase
    replied to Syntax error help
    in C
    we can guide you only if you post your code :)
    See more | Go to post

    Leave a comment:


  • vimase
    replied to nested printfs
    in C
    try executing the following code,
    Code:
    #include <stdio.h>
    int main()
    {
    while(1)
    {
    
    if(printf("%d",printf("%d ")))
    break;
    else
    continue;
    }
    return 0;
    }
    you have missed out the space in the inner printf, so the two integers are bieng printed together without space in between them....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...