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...

Write code for atoi(x) where x is hexadecimal string.

Answer Posted / audrius

long l = strtol(string, NULL, 16);
//or, if you need unsigned (which you usually do with hexes)
unsigned long ul = strtoul(string, NULL, 16);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by scope of a variable in c?

986


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2147


how is the examination pattern?

1978


What is the difference between variable declaration and variable definition in c?

1036


Explain void pointer?

994


What are register variables in c?

987


What is an array in c?

1012


Explain the difference between exit() and _exit() function?

1127


When is the “void” keyword used in a function?

1442


Explain which function in c can be used to append a string to another string?

1057


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1690


What does != Mean in c?

1001


What is a node in c?

942


Describe how arrays can be passed to a user defined function

1250


Explain the properties of union. What is the size of a union variable

1147