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 4135
Q:

Who is the author of the book "No Full Stops in India" ?

A) R. K. Narayan B) Mark Tully
C) C. Narayan Reddy D) Ved Mehta
 
Answer & Explanation Answer: B) Mark Tully

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

11 4134
Q:

About who was it said " Age cannot wither her nor custom stale her infinite variety " ?

A) Cleopatra B) Benazir Butto
C) Mother Teresa D) Madame Tussaud
 
Answer & Explanation Answer: A) Cleopatra

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

2 4134
Q:

In which one among the following districts is the highest point of Eastern Ghats located?

A) Ganjam B) Visakhapatnam
C) Kurnool D) North Arcot
 
Answer & Explanation Answer: B) Visakhapatnam

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

10 4134
Q:

Although Blind, Deaf and Dumb, She graduated from college and achieved high distinction as a writer and scholar. Who was she ?

A) Anna Pova B) Samantha Fox
C) Sheila Gujral D) Helen Keller
 
Answer & Explanation Answer: D) Helen Keller

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: CAT , GRE
Job Role: Bank Clerk , Bank PO

3 4133
Q:

Where is the Longest Railway bridge located?

A) America B) Africa
C) Europe D) Malashiya
 
Answer & Explanation Answer: B) Africa

Explanation:

Longest railway bridge (Lower Zambesi ) is located in Africa

Report Error

View Answer Report Error Discuss

14 4133
Q:

Which of the following is the headquarters of UNEP (United Nations Environment Programme)?

A) The Hague B) New York
C) Nairobi D) Vienna
 
Answer & Explanation Answer: C) Nairobi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 4133
Q:

Which of the following gases is present under pressure in soft drinks?

A) Nitrous oxide B) Oxygen
C) Nitrogen D) Carbon dioxide
 
Answer & Explanation Answer: D) Carbon dioxide

Explanation:

Carbon dioxide is present under pressure in soft drinks.

Report Error

View Answer Report Error Discuss

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

2 4132