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:

Order of basicity of amines in gaseous state?

A) 2'> 1'> 3' > NH3 B) 3' > 2' > 1'> NH3
C) 1' > 2' > 3'> NH3 D) 2'> 3'> 1' > NH3
 
Answer & Explanation Answer: B) 3' > 2' > 1'> NH3

Explanation:

The order of basicity in ammonia is different in gaseous phases vs. aqueous phases due to hydrogen bonding.

 

So in gaseous phases it's the well known: 3' > 2' > 1'> NH3. Just so we're on the same page, this is due to the inductive effect of electron donating alkyl groups--they destabilize the lone pair on nitrogen atom, making nitrogen more basic.

 

But in aqueous phase, the order is slightly different: 2'> 1'> 3' > NH3.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

6 6412
Q:

In India, the first hour of every Parliamentary sitting is allotted for ________.

 

A) Question hour B) Half an hour
C) Zero hour D) No option is correct
 
Answer & Explanation Answer: A) Question hour

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 6411
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 6409
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 6406
Q:

What is the national sport of Pakistan?

 

A) Cricket B) Football
C) Hockey D) Table Tennis  
 
Answer & Explanation Answer: C) Hockey

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

1 6403
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 6400
Q:

Who was the exponent of Yog Darshan?

 

A) Patanjali   B) Gautam
C) Jaimini D) Shankaracharya
 
Answer & Explanation Answer: A) Patanjali  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

2 6392