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)
{
...
Type: Posts; User: whimsical1987
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)
{
...
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...
Thanks for useful suggestions. I was able to figure out to convert the number.
No, I didnt understand what you said. Can you give me some little more push ??
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...
Can anyone please help me with the program ?
I am confused .
this is my whole code.
#include<stdio.h>
#include<stdlib.h>
/* Prototype functions */
void printHex(short);
char asciiDigit(int);
can anyone help in correcting me with the code. where to store the value after shifting and printing the right value at the output
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 */
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