Search:

Type: Posts; User: whimsical1987

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,720

    For the strcat function which has to be written...

    For the strcat function which has to be written in the exercise part of Dennis Ritchie
    I wrote the following code. Can anyone tell whether its correct



    void strcat(char *s, char *t)
    {
    ...
  2. Replies
    9
    Views
    1,720

    Pointers in C

    I am going through the pointers in C from the book written by Dennis Ritchie. I have one question from the text book which says that
    char amesg[] = " now is the time"
    char *pmesg = "now is the...
  3. Thanks for useful suggestions. I was able to...

    Thanks for useful suggestions. I was able to figure out to convert the number.
  4. No, I didnt understand what you said. Can you...

    No, I didnt understand what you said. Can you give me some little more push ??
  5. I use short integer which has to be converted to...

    I use short integer which has to be converted to hexadecimal number.

    When i use the & I am masking everything except the last 4 bits, which I'll be converting to the hex and then do the right...
  6. Can anyone please help me with the program ? I...

    Can anyone please help me with the program ?
    I am confused .
  7. this is my whole code. #include...

    this is my whole code.


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

    /* Prototype functions */
    void printHex(short);
    char asciiDigit(int);
  8. can anyone help in correcting me with the code....

    can anyone help in correcting me with the code. where to store the value after shifting and printing the right value at the output
  9. if ( number < 10 && number >= 0) {...

    if ( number < 10 && number >= 0)
    {
    printf("%d", number);
    exit(1);
    }

    for (i = 0; i < LENGTH_OF_SHORT; i+=4){
    /* Obtain the least-significant bit of number */
  10. C program to convert a decimal number to hex using masks and shifts

    Hi,

    I am in dilemma. I couldn't figure out how to convert a decimal number to hex in C using shifts and masks. Can any one help as soon as possible. Please I need it urgent
Results 1 to 10 of 10