Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: madhu542

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    794

    Re: Help needed for a pointer program

    I understood like below (comments inline):

    without malloc:
    ----------------
    madhu@Ideapad:~/Desktop$ ./a.out
    -1217282060 // char *p is not pointing to anything so garbage is printing
    124 ...
  2. Replies
    6
    Views
    794

    Re: Help needed for a pointer program

    Thanks for you reply.
    This is an interview question which I faced recently so, that of posting here to get some more information.

    can you explain each statement, how it will behave?
  3. Replies
    6
    Views
    794

    Help needed for a pointer program

    Hi,

    Can anyone explain the below outputs of the program (with malloc statement and without malloc statement).

    #include<stdio.h>
    #include<stdlib.h>
    int main()
    {
    char *p;
  4. Replies
    2
    Views
    331

    Bitfiields in C how to?

    Hi,

    I pasted my problem (below), need solution for the same

    /* Counting bits from left to right (least significant bit is bit 0 and
    * most significant is bit 31), the following describes...
  5. How to find the architecture of the system using pointers?

    Hi,

    I have a program (below)

    int main() {
    int x = 1;
    char *y = (char *) &x;
    printf("%d\n", *y);
    }
  6. Re: Reading bits using bitwise operators from 32 bit integer

    Thanks for the reply!

    Could you please look into my actual issue (below)...

    The 32 bit integer contains the below information, I need to read and save these values for further calculations...
    ...
  7. Reading bits using bitwise operators from 32 bit integer

    Hi,

    I have a 32 bit integer variable with some value (eg: 4545) in it, now I want to read first 8 bits into uint8_t and second 8 bits into another uint8_t and so on till the last 8 bits.

    I am...
  8. Re: Reading bits using bitwise operators from 32 bit integer

    Okay, but I need this in C under Linux platform.
  9. Reading bits using bitwise operators from 32 bit integer

    Hi,

    I have a 32 bit integer variable with some value (eg: 4545) in it, now I want to read first 8 bits into uint8_t and second 8 bits into another uint8_t and so on till the last 8 bits.

    I am...
Results 1 to 9 of 9


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center