Questions

Q:

What is the difference between malloc() and calloc() functions?

Answer

As against malloc(), calloc() needs two arguments, the number of elements  to be allocated and the size of each element. For example,


 p = (int *) calloc (10, sizeof (int));


would allocate space for a 10- integer array. Additionally, calloc() would also set each of this element with a value 0.


Thus the above call to calloc() is equivalent to:


p = (int *) malloc (10 * sizeof (int));


memset (p, 0, 10 * sizeof( int ));

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 4532
Q:

The Earthquake at Sagami bay in Japan which killed two and half lakh people was an example of

A) Tectonic earthquake B) Plutonic earthquake
C) Main induced evarthquake D) Isostatic earthquake
 
Answer & Explanation Answer: A) Tectonic earthquake

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

2 4531
Q:

What are the rungs of the DNA ladder made of?

A) phosphates and sugars B) nitrates and sugars
C) nitrates and phosphates D) sugars and hydrates
 
Answer & Explanation Answer: C) nitrates and phosphates

Explanation:

The rungs or the sides of the DNA ladder is made of Deoxyribose, which is a pentose, and a phosphate group are the two molecules together form the two sides of the DNA i.e, A sugar (deoxyribose) and a phosphate.

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

0 4531
Q:

 The first step in database development is which of the following?

A) Enterprise data modeling B) Logical database design
C) Physical database design and definition D) Database Implementation
 
Answer & Explanation Answer: A) Enterprise data modeling

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 4531
Q:

Which of the following is India's new rating Index developed by Ministry of Finance?

A) CECA B) CRIS
C) TIEA D) RTGS
 
Answer & Explanation Answer: B) CRIS

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 4529
Q:

The World's largest railway platform is at

A) Talchar B) New York
C) Kharagpur D) None of these
 
Answer & Explanation Answer: C) Kharagpur

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

4 4527
Q:

A person who is always dissatisfied

A) malcontent B) surrogate
C) heresy D) felon
 
Answer & Explanation Answer: A) malcontent

Explanation:

The one word substitute for "a person who is always dissatisfied" is malcontent.

Report Error

View Answer Report Error Discuss

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

1 4526
Q:

The credit of inventing the tv goes to

A) Philo Farnsworth B) John Logie Baird
C) Philo Farnsworth D) None of the above
 
Answer & Explanation Answer: A) Philo Farnsworth

Explanation:

The credit of inventing the television goes to Philo Farnsworth.

Report Error

View Answer Report Error Discuss

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

4 4526