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

Which of the following bank has recently launches a special edition ' Cricket Credit Card' in association with IPL franchise Delhi Daredevils?

A) Yes Bank B) Federal Bank
C) Ratnakar Bank Limited D) Kotak Mahindra Bank
 
Answer & Explanation Answer: C) Ratnakar Bank Limited

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

3 4134
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:

Who acted as the Prime minister of India immediately on the death
of Jawaharlal Nehru ?

A) Mrs Indira Gandhi B) Gulzari Lal Nanda
C) TT Krishnamachari D) Lal Bahadur Shastri
 
Answer & Explanation Answer: B) Gulzari Lal Nanda

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

9 4131
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 4131
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 4131
Q:

Which Company is the biggest player in the microprocessor industry  ?

A) AMD B) IBM
C) Motorola D) Intel
 
Answer & Explanation Answer: D) Intel

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

19 4130