Search:

Type: Posts; User: rohit_second

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,949

    hi, but arr[57/8]=arr[7] will not create...

    hi,

    but arr[57/8]=arr[7] will not create 50 bits.taking a char variable size as 8 bits.it will create 56 bits,not exactly 50 bits.

    thanks,
    rohit
  2. Replies
    5
    Views
    1,949

    creating a array of 50 bits

    hi,

    I want to know how the below program creates an array of 50 bits.
    insert

    #define CHARSIZE 8
    #define NUMSLOTS(n) ((n+CHARSIZE-1)/CHARSIZE)

    void main()
    {
  3. Replies
    5
    Views
    9,718

    how should i get access of that structure that i...

    how should i get access of that structure that i have filled in the first function.Do i have to make the structure global ?
  4. Replies
    5
    Views
    9,718

    double pointer to a structure

    hi,
    I need to know how to deference a double pointer to a structure.

    i have a structure like this.
    insert

    struct string1
    {
    unsigned char line1[20];
  5. Replies
    1
    Views
    1,634

    pointer confusion

    hi,
    What exactly happens in this program
    insert

    void main()
    {
    char str1[]="Italy";
    char str2[2]="Rome";
    char *s1=str1,*s2=str2;
    while(*s1++ = *s2++);
  6. Replies
    11
    Views
    3,719

    hi, Thanks great explanation. Regards,...

    hi,
    Thanks great explanation.

    Regards,
    Rohit
  7. Replies
    11
    Views
    3,719

    hi, Thanks.But i still don't understand why...

    hi,
    Thanks.But i still don't understand why i get the answer 256 for this program...
    insert

    int main()
    {
    unsigned char i=0x80;
    printf("&#37;d",i<<1);
    }
  8. Replies
    11
    Views
    3,719

    bitwise shift operators in -ve numbers

    hi,
    Can anyone explain.....how the compiler computes the output for this ????
    insert

    int main()
    {
    printf("%x\n",-1>>4);
    }

    according to me....-1 is represented as
  9. Replies
    4
    Views
    984

    sizeof issue with ' ' and " "

    hi,
    Can anyone explain what is the theory behind this program execution.....

    When i type the following program....
    insert

    int main()
    {
    char ch='A';
    printf("%d %d ...
  10. Replies
    6
    Views
    1,930

    preprocessor output

    hi,
    Can anyone explain about the output of the following program ???
    insert

    #define CUBE(x) (x*x*x)

    int main()
    {
    int a,b=3;
    a=CUBE(b++);
  11. Replies
    2
    Views
    1,905

    float value storage

    hi,
    Can anyone please explain....how a float value is stored in memory.

    For example.

    The sizeof float value is 4 bytes ie) 32bits.....

    If a=32.56

    The binary equivalent of 32.56 is...
  12. Replies
    8
    Views
    5,521

    confusion cleared

    hi,
    Thanks for everybody for solving the problem.Excellent explanation keep it up.Hats off to you guys.

    Regards,
    Rohit
  13. Replies
    8
    Views
    5,521

    && and || operator confusion

    hi,

    Can anyone explain me the results of the following program....
    insert

    main()
    {
    int i=-3,j=2,k=0,m;
    m=++i && ++j || ++k;
    printf("%d %d %d %d",i.j,k,m);
  14. Replies
    20
    Views
    3,142

    function pointer

    hi,

    Please don't use typedef in defining a function pointer,its confusing.I have already said that the site did not contain information like.

    Pointer to a array of function pointer;

    I...
  15. Replies
    20
    Views
    3,142

    function pointer

    Please understand the question properly.......

    I am asking for an example like,

    Function returning a pointer to an array of function pointers.....not the entire array.

    Also examples for.......
  16. Replies
    20
    Views
    3,142

    fnction pointer

    The site has examples of function pointers,function returning function pointers.

    But there is no examples for

    Function returning an pointer to array of function pointers.

    pointer to a...
  17. Replies
    20
    Views
    3,142

    Pointer to a function pointer

    hi,

    Can anyone show me.....how to create a pointer to a function pointer.
    Please show me by creating some functions....

    Also

    What this apply.....

    char (*(x()) [ ]) ()
Results 1 to 17 of 17