Questions

Q:

What do the functions atoi(), itoa() and gcvt () do? Show how would you use them in a program.

Answer

atoi()         Converts a string to an integer.


itoa()         Convert an integer to a string


gcvt()        Converts a floating-point number to a string


 


#include "stdlib.h"


main()


{


      char s[] = "12345";


      char buffer [15], string[20];


      int i;


      


      i = atoi (s);


      printf("\n%d",i);


 


       gcvt (20.141672, 4, buffer);


       printf ("\n%s", buffer);


 


       itoa(15, string,2);


        printf ("\n%s", string);


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

2 6412
Q:

Who of the following scientists is named after ISRO in sriharikota ?

A) APJ Abdul Kalam B) Vikram Sarabhai
C) Homi J Baba D) Satish Dhawan
 
Answer & Explanation Answer: D) Satish Dhawan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

38 6411
Q:

Teotihuacan Pyramids is located in which country?

A) Agentina B) Peru
C) Mexico D) Laos
 
Answer & Explanation Answer: C) Mexico

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

10 6408
Q:

What Asks But Never Answers?

A) Teacher B) Telephone
C) Letter D) Owl
 
Answer & Explanation Answer: D) Owl

Explanation:

An owl.

"What noise does an owl make?

The sound an Owl makes, it sounds like, "Who?" to our ears.

They sounds entire lives asking the same question, but they'll never give any answers.

Report Error

View Answer Report Error Discuss

Filed Under: Word Puzzles
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

14 6407
Q:

National Rural Development Institute is situated at

 

A) Assam B) Patna
C) Shimla D) Hyderabad
 
Answer & Explanation Answer: D) Hyderabad

Explanation:

National Institute of Rural Development is situated in Hyderabad. It is an organization involved in rural research and training in rural development.

 

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

1 6405
Q:

Rearrange the parts of the sentence in correct order.

In developing countries today

P : urban health conditions

Q : than rural health conditions

R : seem to be better

A) PRQ B) PQR
C) QRP D) RPQ
 
Answer & Explanation Answer: A) PRQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 6403
Q:

Which of the following is/are the function(s) of bile juice released from the liver?

 

I. Make the food coming from stomach alkaline.

II. Conversion of proteins into amino acids.

III. Break down of fats into smaller globules.

 

A) Only I   B) Only II and III  
C) Only I and III   D) All I, II and III  
 
Answer & Explanation Answer: C) Only I and III  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

1 6393
Q:

What is so delicate that even mentioning it breaks it?

Answer

Silence is what is so delicate that even mentioning it breaks it.

Report Error

View answer Workspace Report Error Discuss

8 6393