Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

main()
{
unsigned int k = 987 , i = 0;
char trans[10];
do {
trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' );
} while(k /= 16);
printf("%s\n", trans);
}

Answer Posted / dishank

deepthisivan can u plz elaborate.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I read and write comma-delimited text?

1008


What is main () in c language?

1077


Explain what is the general form of a c program?

1028


What is the purpose of clrscr () printf () and getch ()?

1021


What is the difference between malloc() and calloc() function in c language?

1028


Write a program to print factorial of given number using recursion?

959


What would be an example of a structure analogous to structure c?

941


Write a program in c to replace any vowel in a string with z?

1073


When do we get logical errors?

1070


What is a null string in c?

987


Why is c called a structured programming language?

1212


What is #define?

1037


Tell me when would you use a pointer to a function?

1009


swap 2 numbers without using third variable?

1080


What is a macro, and explain how do you use it?

1015