What do the functions atoi(),itoa()and gctv()do?

What do the functions atoi(),itoa()and gctv()do?

In basic term we can say that atoi() is used to change string to integer ,itoa() is used to change integer to string and gctv() is used to change double to sting.Huge knowledge about those are given below:

atoi()is used to change strings("65"or"87vivek") into integers, They gives 65 and 87 respectivey.
first character isn't a no or -ve, Then atoi returns 0.
For atoi it is mandatry one char * argmt and returns int (not a float!).

itoa()is used to change integer(65)into string("C").

By:Vivek Kr. Agarwal
Date:2031-12-08 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher